Skip to content
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

Multi-accounts OFX files not supported #369

Closed
hsoft opened this issue Aug 25, 2013 · 2 comments
Closed

Multi-accounts OFX files not supported #369

hsoft opened this issue Aug 25, 2013 · 2 comments
Labels

Comments

@hsoft
Copy link
Owner

@hsoft hsoft commented Aug 25, 2013

When an OFX file containing multiple accounts in it is imported in moneyGuru, only the last file is read. There's a sample OFX file at https://gist.github.com/hsoft/6334109

@manuch54
Copy link

@manuch54 manuch54 commented Aug 27, 2013

Hello,

I've analyzed the code of /core/loader/ofx.py file. I think the problem comes from function end_stmtrs which will only work properly if a BANKID and BRANCHID are defined with the ACCTID in the file. But, as you will see in the sample file, there is no BANKID nore BRANCHID in the credit cards transactions. So I think it shall work better if you remove "hasattr(a, 'ofx_bank_id') and" on line 68 of this ofx.py file. This way, if I understood your coding, you will switch to a new account even if there is no BANKID associated with the ACCTID.

Hope this helps.

@ghost ghost assigned hsoft Sep 6, 2013
@hsoft hsoft closed this in 33b1cea Sep 6, 2013
@hsoft
Copy link
Owner Author

@hsoft hsoft commented Sep 6, 2013

The problem was rather that it didn't count CCSTMTRS as an "account starter" tag, and it messed up thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants