[kmymoney] [Bug 428156] OFX import goes to the wrong account

Thomas Baumgart bugzilla_noreply at kde.org
Mon Oct 4 09:41:19 BST 2021


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

--- Comment #21 from Thomas Baumgart <tbaumgart at kde.org> ---
I looked into this one again today since it is so strange. I located where the
values of accountname="Bank account " and accountnumber="  " are set: it is in
OfxAccountContainer::gen_account_id(), so way inside LibOFX. Here's the code:

    STRNCPY(data.account_id, string(data.account_id) + m_bankid + " " +
m_branchid + " " + m_acctid);
    STRNCPY(data.account_name, string(data.account_name) + "Bank account " +
m_acctid);

and with m_bankid, m_branchid and m_acctid being empty, the values we see get
generated. Also, account_type must be differing from credit card and investment
account at that point (I suspect, it is also unset).

This now raises the following questions:

- which version of LibOFX do you have installed and is used by KMyMoney?
- can you run the utility ofxdump to see if it provides some more details about
what is happening esp. when comparing your two cc accounts? Check "ofxdump
--help" for info about options.

Note: Regarding the difference between "OFX file import" and "OFX direct
connect": OFX direct connect downloads an OFX file, saves it into a temp file
(and writes info about it into the log file) and then calls the OFX file
importer just like you would do when you have the OFX file. So no difference
there.

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


More information about the KMyMoney-devel mailing list