Skip to content

Commit

Permalink
Reverse buy/sell detection
Browse files Browse the repository at this point in the history
  • Loading branch information
dickwolff committed Feb 20, 2024
1 parent 9872c33 commit 06a481f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/converters/rabobankConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down

0 comments on commit 06a481f

Please sign in to comment.