[kmymoney] [Bug 394124] Investment Sell activity is automatically set to Buy when Total ammount is rounded to zero
Ralf Habacker
bugzilla_noreply at kde.org
Fri May 11 21:46:44 UTC 2018
https://bugs.kde.org/show_bug.cgi?id=394124
Ralf Habacker <ralf.habacker at freenet.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |CONFIRMED
Ever confirmed|0 |1
--- Comment #2 from Ralf Habacker <ralf.habacker at freenet.de> ---
The problem is caused in void InvestTransactionEditor::dissectTransaction()
where the transaction type is determined from the split value:
186: } else if (split.action() == MyMoneySplit::ActionBuyShares) {
187: transactionType = (!split.value().isNegative()) ?
MyMoneySplit::BuyShares : MyMoneySplit::SellShares;
In case the split value is zero, it is determined as BuyShares because it is
not negative.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the KMyMoney-devel
mailing list