Statement import: read ING's Af Bij column for the direction of each amount

ING Netherlands exports every amount as positive and says Af (out) or Bij (in)
in its own column. Without this, spending and income all came in as income.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
MangaValkandClaude Opus 5.5 committed 2026-11-17 11:40:37 +01:00
1 parent b532bb8dd8
commit fc0bf0a566
2 files changed
+18 -2

No files matched your search

+10
View File
@@ -146,3 +146,13 @@ console.log("statement ok");
assert.equal(categoryKey(""), null);
assert.equal(categoryKey("Miscellaneous"), null);
}
// ING Netherlands: amounts are always positive, and the "Af Bij" column says which way the money went.
{
const c = csv(`"Datum";"Naam / Omschrijving";"Rekening";"Tegenrekening";"Code";"Af Bij";"Bedrag (EUR)";"Mutatiesoort";"Mededelingen";"Saldo na mutatie";"Tag"
"20261114";"Albert Heijn 1234";"NL00INGB0001234567";"";"BA";"Af";"42,17";"Betaalautomaat";"Pasvolgnr: 001";"1.957,83";""
"20261113";"Werkgever BV";"NL00INGB0001234567";"NL00RABO0123456789";"OV";"Bij";"2.500,00";"Overschrijving";"Salaris november";"2.000,00";""
"20261112";"Netflix";"NL00INGB0001234567";"";"IC";"Af";"13,99";"Incasso";"";"-500,00";""
`, "nl-NL");
assert.deepEqual(brief(c.rows), [["2026-11-14", 42.17, "Albert Heijn 1234"], ["2026-11-13", -2500, "Werkgever BV"], ["2026-11-12", 13.99, "Netflix"]]);
}