martinohansen / ynabber

Ynabber reads bank transactions from GoCardless (formerly Nordigen) and wrties them into YNAB
GNU General Public License v3.0
21 stars 11 forks source link

Ynab writer and credit card accounts #71

Closed linkmic closed 7 months ago

linkmic commented 7 months ago

Hei Martin,

I was informed about your project today and conducted a quick test with SEB Kort Bank, which powers lots of credit cards, including the SAS Eurobonus card.

The transactions were successfully parsed and written to YNAB using the default mapper. However, they were written to YNAB as inflows instead of outflows. The transactions are returned as positive values from Nordigen.

image

Instead of creating a new mapper for this particular bank or provider, you could consider adding a configuration option to invert the sign (+/-) of the transaction's 'Amount' field whenever you have the inclination in the future, which I assume would rectify the problem.

/mike

hpernu commented 7 months ago

Just to chime in: I remembered that there is a config option to do exactly this and indeed there is: https://github.com/martinohansen/ynabber/blob/7f8c6ddaa361d542e1741c8361f3f3e744db3526/config.go#L120-L124

Does it look like it'd do what you need?

linkmic commented 7 months ago

It does, can't believe I missed that. Thank you.