Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Bigbank PDF Importer ignoring cent amounts #3891

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ public void testKontoauszug01()
new AssertImportActions().check(results, CurrencyUnit.EUR);

// assert transaction
assertThat(results, hasItem(deposit(hasDate("2024-03-20"), hasAmount("EUR", 10.00), //
assertThat(results, hasItem(deposit(hasDate("2024-03-20"), hasAmount("EUR", 10.12), //
hasSource("Kontoauszug01.txt"), hasNote(null))));

// assert transaction
assertThat(results, hasItem(deposit(hasDate("2024-03-21"), hasAmount("EUR", 1500.00), //
assertThat(results, hasItem(deposit(hasDate("2024-03-21"), hasAmount("EUR", 1500.34), //
hasSource("Kontoauszug01.txt"), hasNote(null))));

// assert transaction
assertThat(results, hasItem(removal(hasDate("2024-03-25"), hasAmount("EUR", 10.00), //
assertThat(results, hasItem(removal(hasDate("2024-03-25"), hasAmount("EUR", 10.12), //
hasSource("Kontoauszug01.txt"), hasNote(null))));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ Kontoauszug von 01.03.2024 bis 25.03.2024
IBAN: EE123456789101112131
Anfangssaldo 01.03.2024 0,00
Datum Gegenkonto Buchung Name Betrag in EUR
20.03.2024 AT123456789101112131 Einzahlung ffIpWotyu dJMdyU +10,00
21.03.2024 AT123456789101112131 Einzahlung oDkoRVZEb TxDUxE +1 500,00
25.03.2024 AT123456789101112131 Auszahlung sUBHAKqzf vNNKxT -10,00
20.03.2024 AT123456789101112131 Einzahlung ffIpWotyu dJMdyU +10,12
21.03.2024 AT123456789101112131 Einzahlung oDkoRVZEb TxDUxE +1 500,34
25.03.2024 AT123456789101112131 Auszahlung sUBHAKqzf vNNKxT -10,12
Endsaldo 25.03.2024 1 500,00
Anfangssaldo 01.03.2024 0,00
Summe Belastungen -10,00
Summe Gutschriften +1 510,00
Endsaldo 25.03.2024 1 500,00
Summe Belastungen -10,12
Summe Gutschriften +1 510,46
Endsaldo 25.03.2024 1 500,34
Dies ist ein automatisch generierter Kontoauszug.
BIGBANK AS Telefon 0810 900 629
Riia 2, Tartu E-mail [email protected]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ private void addAccountStatementTransaction()
@Override
protected long asAmount(String value)
{
return ExtractorUtils.convertToNumberLong(value, Values.Amount, "de", "CH");
return ExtractorUtils.convertToNumberLong(value, Values.Amount, "et", "EE");
}
}
Loading