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

Multiple ofx from one statement #47

Open
infused-kim opened this issue Jun 10, 2016 · 4 comments
Open

Multiple ofx from one statement #47

infused-kim opened this issue Jun 10, 2016 · 4 comments

Comments

@infused-kim
Copy link

Hi,

i am working on a paypal plugin, which supports multiple currencies. in order to do this, I would like to generate multiple OFX files for each currency that is used in the paypal csv.

The easiest way to implement it that I can think of is to allow
p.get_parser(args.input)

to return a list:
[{'parser' : parserUSD, 'account' : 'USD'}, {'parser' : parserEUR, 'account' : 'EUR'}]

convert can then use that to generate multiple OFX files.

What do you think?

Kim

@rkhwaja
Copy link

rkhwaja commented Dec 13, 2018

I would also like this for generating different OFX files for the escrow and loan accounts for house mortgages.

@hades
Copy link

hades commented Jul 13, 2023

Any opinions, updates on this? I'm also interested in this, since Revolut produces statements for multiple accounts in a single CSV per currency.

@kedder
Copy link
Owner

kedder commented Jul 13, 2023

The typical approach here is to process such input file multiple times with different settings. E.g. I have in my config.ini:

[swedbank-eur]
plugin = swedbank
currency = EUR

[swedbank-usd]
plugin = swedbank
currency = USD

My bank generates a single statement with multiple currencies, but ofxstatement runs twice and produces two OFX files. I think that's the only way GnuCash (which is my use case) can import such files (because it imports a file-per-account, which has fixed currency).

Technically, the plugin would only take records with configured currency from the statement and ignore all others.

@hades
Copy link

hades commented Jul 13, 2023

That could also work, yes.

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

No branches or pull requests

4 participants