[Kmymoney-devel] Review Request 124957: Bug 351874 - QIF import of investment buys and sells mishandles commissions

Jeff Lundblad jeffjl.kde at outlook.com
Mon Aug 31 22:05:40 UTC 2015

This is an automatically generated e-mail. To reply, visit:

(Updated Aug. 31, 2015, 10:05 p.m.)

Review request for KMymoney.


The previous patch would change a loss into a profit when the commission on a sale was greater than the sale price. (KMM version 4.72 does the same thing.)  I don't see a way to import that class of transaction without changing the statement reader, because the statement reader sets the sign on the amount based on whether the transaction is a buy or sell, expecting a buy to cost money and a sale to bring in money. But in this particular case, a sale costs money.

With this patch, the imported sale that costs money gets a warning triangle in the ledger.  Just editing the transaction on the ledger page, and then selecting "Enter" without changing anything corrects the transaction and the warning triangle goes away. Since this situtaion should be uncommon, I think that is acceptable, and doesn't require changing the statement reader.

Bugs: 351874

Repository: kmymoney


Changes made so that the commission for an investment buy or sell is only added to the transaction total one time instead of three times.

Diffs (updated)

  kmymoney/converter/mymoneyqifreader.cpp d07b9b9 

Diff: https://git.reviewboard.kde.org/r/124957/diff/


Tested using exports of investment accounts from Quicken 2013.


Jeff Lundblad

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20150831/b4d8c960/attachment-0001.html>

More information about the KMyMoney-devel mailing list