-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only reads one account from OFX file #32
Comments
I didn't know you could have an OFX file with multiple accounts. Do you think you could provide a sample? I know it's hard to anonymize the data, but it would be very helpful. Thanks. |
tangerine Canada OFX respond |
@257 Thank you for the sample file! |
I just ran into this issue as well. It looks like my bank (USAA) does the same thing (multiple accounts in a single file). |
I'm hitting this, too. Vanguard allows mixing of accounts in exported qfx file. ledger-autosync only extracts the first one. |
I also hit the issue. This is because OfxParser expose account and accounts attributes, where the account attribute is equal to accounts[0]. However ledger-autosync use ofxparser.account and not ofxparser.accounts. |
@fabrepe Interesting! Thanks. I'll look into |
Wow, what a quick reply 👍 @egh Thank your very much I think we should loop over the ofxparser.accounts list in the cli.import_ofx function. |
Same issue with the same bank. USAA FSB doesn't give you an option to download just one account -- you just download either your bank or your investment accounts, so it's not easy to get around without hand-editing the QFX or OFX files... Thanks! |
Looking at the ofx object returned by OfxParser, there's an |
@gepandz A pull request would definitely be welcome, thank you! |
* Fix egh#32 * Allows specify format of account in case of multiple accounts when importing OFX
My bad, this pull request will certainly break the cli.sync function. As the print_results function is also called by the sync function. I cannot test the sync, but I will do another pull request with a fix. Sorry for the inconvenience. |
If I download an OFX file with several accounts in it, ledger-autosync only seems to import one of the accounts. If I let ledger-autosync manage the downloading, then it seems to get all the accounts.
My real goal is to modify the OFX file before letting ledger-autosync work on it. I want to clean up various known problems, like rewriting some of the memo and name fields so that transaction matching works correctly.
The underlying problem is that some ledger tools work on OFX files, some on CSV, and some on Journals, so it's hard to piece together the various bits (cleanup, de-duping, assigning to the correct accounts, etc.) My goal is to have a single script that will download a bunch of OFX and CSVs every day and dump out some mostly-correct (and non-duplicate) journal entries to review.
The text was updated successfully, but these errors were encountered: