[kmymoney] [Bug 420056] New: BUY/SELL information ignored when importing OFX investment transactions

Dawid Wróbel bugzilla_noreply at kde.org
Tue Apr 14 04:34:57 BST 2020


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

            Bug ID: 420056
           Summary: BUY/SELL information ignored when importing OFX
                    investment transactions
           Product: kmymoney
           Version: git (master)
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: importer
          Assignee: kmymoney-devel at kde.org
          Reporter: me at dawidwrobel.com
  Target Milestone: ---

Created attachment 127525
  --> https://bugs.kde.org/attachment.cgi?id=127525&action=edit
Sample OFX file

SUMMARY
I noticed that BUY/SELL information is completely ignored and KMyMoney defaults
to just assuming each transaction is a "BUY" one when importing investment
transactions using OFX.


STEPS TO REPRODUCE
1. Create an investment and a corresponding brokerage account
2. Import the OFX file attached,
3. Assign accounts accordingly

OBSERVED RESULT
1. Notice that all investment transactions are of Sell type
2. Notice that brokerage account transactions are all on the same side of
ledger. In particular notice 

EXPECTED RESULT
3. Investment transactions should be of both Sell and Buy type, matching the
OFX file
4. Brokerage account transactions should be on both sides of the ledger. In
particular notice that the EXCHANGE IN/OUT transactions from 4/08 do not zero
out.


I debugged it briefly and can see that OFXImporter::ofxTransactionCallback()
assigns t.m_eAction = eMyMoney::Transaction::Action::Sell/Buy flags correctly,
which would indicate that the issue is downstream. However, I also tested with
identical information using QIF statement and could not reproduce the issue, so
it seems to be OFX specific after all.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list