[Kmymoney-devel] [Bug 273950] QIF investment import containing L[parent:sub-account] flagged

allan agander93 at gmail.com
Wed May 25 01:58:13 CEST 2011


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


allan <agander93 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |agander93 at gmail.com




--- Comment #3 from allan <agander93 gmail com>  2011-05-25 01:58:13 ---
(In reply to comment #0)
> Version:           4.5 (using KDE 1.2) 
> OS:                Linux
> 
> This query/response from Allan (CSV importer plugin author)  & Thomas Baumgart
> explains the problem better than I can. 
<snip>

> Actual Results:  
> The file is imported without problems. However in the ledger view of the
> investment account/securityA, the transaction is flagged (yellow
> triangle/exclamation). The account field is blank and no money is transferred
> to the chq account as above
<snip>

The account contained in the 'L' record gets passed correctly from
kmymoney/kmymoney/converter/mymoneyqifreader.cpp to mymoneystatementreader.cpp,
as 'brokerageaccount'.  There, however, the 'brokerageactid' does not get set
correctly.  The attached patch appears to fix the problem.

With the patch applied, an 'L' record of 'L[Bank-Accounts:chq]' will generate
automatically those two accounts and correctly transfer money into/from
'Bank-Accounts:chq' .  However the asset account automatically created is of
type 'checking'.  So, to achieve what the OP requires, an account of type
'asset' first needs to be created.  Then, the required result is obtained.  If
both the 'Bank-Accounts' and 'chq' accounts are created manually, the same
result is achieved.

Tested with buy, sell and dividend transactions.  Both QIF and CSV imports now
work correctly.

-- 
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