Commit 38f19da8 authored by Thomas Baumgart's avatar Thomas Baumgart
Browse files

Fix 'missing assignment' error after changing invest transaction to reinvest

The problem was caused by the fact that assetAccountSplit was not
disabled from the previous activity type.

BUG:388700

(cherry picked from commit 6ae7e184)
parent b499ac4c
......@@ -674,6 +674,7 @@ bool Reinvest::createTransaction(MyMoneyTransaction& t, MyMoneySplit& s0, MyMone
qDebug("more or less than one interest split in Reinvest::createTransaction. Not created.");
return false;
}
assetAccountSplit.setAccountId(QString());
MyMoneySplit& s1 = interestSplits[0];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment