From 06a481fc3dd5b8be4b9d0d3a8e58d1a24f6162e0 Mon Sep 17 00:00:00 2001 From: Dick Wolff Date: Tue, 20 Feb 2024 21:06:46 +0100 Subject: [PATCH] Reverse buy/sell detection --- src/converters/rabobankConverter.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/converters/rabobankConverter.ts b/src/converters/rabobankConverter.ts index 514f057..f12447d 100644 --- a/src/converters/rabobankConverter.ts +++ b/src/converters/rabobankConverter.ts @@ -34,12 +34,12 @@ export class RabobankConverter extends AbstractConverter { if (context.column === "type") { const action = columnValue.toLocaleLowerCase(); - if (action.indexOf("koop fondsen") > -1) { - return "buy"; - } - else if (action.indexOf("verkoop fondsen") > -1) { + if (action.indexOf("verkoop fondsen") > -1) { return "sell"; } + else if (action.indexOf("koop fondsen") > -1) { + return "buy"; + } else if (action.indexOf("dividend") > -1) { return "dividend"; }