mlaitinen / ofxstatement-revolut

ofxstatement plugin for parsing Revolut CSV bank statements
GNU General Public License v3.0
13 stars 13 forks source link

Support filtering by "Product" #24

Closed hades closed 1 month ago

hades commented 1 year ago

My CSV exports from Revolut contain multiple accounts in the same file (e.g. stocks and current account). What if we added support a setting to filter the transactions by the "Product" column, so that multiple OFX files can be generated from the same CSV?

See also https://github.com/kedder/ofxstatement/issues/47

mlaitinen commented 1 year ago

Thanks for the feature request. I'm no longer using this plugin since YNAB now supports importing Revolut transactions through an integration. If someone is willing to implement such feature, I'd be happy to review and merge it.

As a workaround you could use csvtool to filter the CSV statement files before running them through ofxstatement.

For example:

csvtool --encoding UTF-8 -c 2 -s '^Current$' account-statement-revolut.csv > revolut-current.csv

will produce a revolut-current.csv file that contains the header and the transactions of the current account only.

mlaitinen commented 1 month ago

Closed by #26