https://bugs.kde.org/show_bug.cgi?id=339262
allan <agande...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |agande...@gmail.com Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #6 from allan <agande...@gmail.com> --- [From Dev List] I'm having difficulty importing a particular transaction. It is an example of a regular transaction, where the payee name often varies. I have the matching set up to include a few variations. In this particular case, the payee is 'FIDELITY FNW INC ' and I have an entry to match that to 'FIDELITY'. There is no default account. This is what happens on import - Statement with 1 transactions ready. KMyMoneyPlugin::KMMStatementInterface::import start Importing statement for 'NatWest Current Plus 8355' Processing transactions (NatWest Current Plus 8355) Process on: '2015-03-02', id: '2015-03-02-7fafe70-1', amount: '40.09', fees: '0.00' Start matching payee Found match with 'FIDELITY FNW INC' on 'FIDELITY' Single matches Adding second split to Artemis High Income(A000454) Setting second split shares to E000002 -49.56 Looking for a match with transaction: "2015-03-02" , "FIDELITY" , "40.09" (referenced account: "NatWest Current Plus 8355" ) Considering 0 existing transaction(s) for matching Looking for a match with transaction: "2015-03-02" , "FIDELITY" , "40.09" (referenced account: "NatWest Current Plus 8355" ) Considering 17 schedule(s) for matching the transaction Processing transactions done (NatWest Current Plus 8355) Importing statement for 'NatWest Current Plus 8355' done So, what has happened is that a Sell transaction has been created, for the amount of £40.09, and a Quantity of 49.56 has been invented. I can't see any reason why this should happen. There are reinvest dividend transaction referencing both accounts. _______________________________________________________________________________________________________ [Cristian] I'm guessing that the transaction is created with a quantity of 49.56 because between the £ of and E000002 there is a price of 49.59/40.09=1.236. Is that true? Please check your price entries. This was added to fix BUG 339262. ______________________________________________________________________________________________________ [Allan] That could be a clue. If I open the split editor on this transaction, I'm presented with the price editor, showing Currency GBP to GB0006838097, To amount = 49.56, Price £1 = 1.2362, GB0006838097 1 = £0.8089. The last price I have, for 2 Feb, is 0.8089. ____________________________________________________________________________________________________ [Allan] I don't know if this is correct, or good enough, or sufficient,but what I've done is, after line 1135 MyMoneyAccount splitAccount = file->account(s.accountId()), I've added if (!splitAccount.accountType() == MyMoneyAccount::Stock) { to bypass the following four lines. Then, deleting the already imported transaction and re-importing, all looks good. I wondered if MyMoneyAccount::Investment might also need including/excluding. Or, perhaps I'm missing something. -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ KMyMoney-devel mailing list KMyMoney-devel@kde.org https://mail.kde.org/mailman/listinfo/kmymoney-devel