[Kmymoney-devel] [Bug 283339] Missing "Pay to" in categories when importing QIF

allan agander93 at gmail.com
Tue Nov 1 21:25:08 UTC 2011


https://bugs.kde.org/show_bug.cgi?id=283339





--- Comment #7 from allan <agander93 gmail com>  2011-11-01 21:25:08 ---
I've had a look at this, and, after meandering around in the code, I found
that, if the imported transaction is opened for editing then entered without
changing anything, the missing payee gets added to the category, and all
appears OK.

So, after initially thinking it could possibly be another issue with widgets
not displaying correctly, I found that the second split did not have a payeeId,
whereas the manually entered one did.

In the code, in MyMoneyStatementReader::processTransactionEntry(), in 'process
splits', I noticed 
if (acc.isAssetLiability()) {
        s2.setPayeeId(s1.payeeId());

Temporarily adding s2.setPayeeId(s1.payeeId()) after this, appears to fix the
problem.

A second opinion on this would be appreciated, in case I'm in the wrong place.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list