Closed alvarogarcia7 closed 3 months ago
As I kept investigating about this, I came up with an alternative:
A line of the Revolut CSV is turned into two transactions:
an example:
2023-03-06 * "Cash ATM 3"
Assets:Revolut:EUR -8.47 EUR
Expenses:CashWithdrawal
2023-03-06 * "Fees for Cash ATM 3"
Assets:Revolut:EUR -0.08 EUR
Expenses:Revolut:Fees 0.08 EUR
This allows for the smart_importer
to still work.
What are your thoughts, @tarioch ?
I think the split keeps it simple to work with smart importer and I don't have a better idea, let's use that.
@alvarogarcia7 do you want me to merge it like this or do you want to change it into the split transactions?
I have submitted the change in code, to add the fee as a new transaction. thanks,
May I suggest to squash the changes, to actually lose the intermediate history?
Status:
smart_importer
. See belowI think there is now a pre-commit failure with the latest changes, if you can fix that, I think we can merge it. Honestly I keep the tests a bit limited in here (I have some real data based tests for some of the importers in my personal repo). I think it's ok not to add a test for it.
Support importing the fees from Revolut.
Based on https://github.com/tarioch/beancounttools/pull/105 by @Dr-Nuke
Status:
smart_importer
. See belowUsage
When creating the Revolut Importer, pass an optional parameter
fee
:Smart Importer,
As discussed in https://github.com/tarioch/beancounttools/pull/105, when the transaction has more than one posting, smart import won't work anymore.
Proposed workflow:
fee
; then apply smart import.fee
O(n)
, wheren
is the number of entries on the CSV file.If you would be so kind to guide me along those lines, I'll be happy to implement such workflow.