diff --git a/name.abuchen.portfolio.tests/src/name/abuchen/portfolio/datatransfer/pdf/kbcgroupnv/KBCGroupNVPDFExtractorTest.java b/name.abuchen.portfolio.tests/src/name/abuchen/portfolio/datatransfer/pdf/kbcgroupnv/KBCGroupNVPDFExtractorTest.java index 403728468f..75a9c40af7 100644 --- a/name.abuchen.portfolio.tests/src/name/abuchen/portfolio/datatransfer/pdf/kbcgroupnv/KBCGroupNVPDFExtractorTest.java +++ b/name.abuchen.portfolio.tests/src/name/abuchen/portfolio/datatransfer/pdf/kbcgroupnv/KBCGroupNVPDFExtractorTest.java @@ -290,4 +290,26 @@ public void testRekeninguittreksel03() assertThat(results, hasItem(deposit(hasDate("2023-06-12"), hasAmount("EUR", 132673.91), // hasSource("Rekeninguittreksel03.txt"), hasNote("Provisionering rekening klant")))); } + + @Test + public void testRekeninguittreksel04() + { + KBCGroupNVPDFExtractor extractor = new KBCGroupNVPDFExtractor(new Client()); + + List errors = new ArrayList<>(); + + List results = extractor.extract(PDFInputFile.loadTestCase(getClass(), "Rekeninguittreksel04.txt"), + errors); + + assertThat(errors, empty()); + assertThat(countSecurities(results), is(0L)); + assertThat(countBuySell(results), is(0L)); + assertThat(countAccountTransactions(results), is(1L)); + assertThat(results.size(), is(1)); + new AssertImportActions().check(results, CurrencyUnit.EUR); + + // assert transaction + assertThat(results, hasItem(deposit(hasDate("2024-09-05"), hasAmount("EUR", 5.00), // + hasSource("Rekeninguittreksel04.txt"), hasNote("Provisionering rekening klant")))); + } } diff --git a/name.abuchen.portfolio.tests/src/name/abuchen/portfolio/datatransfer/pdf/kbcgroupnv/Rekeninguittreksel04.txt b/name.abuchen.portfolio.tests/src/name/abuchen/portfolio/datatransfer/pdf/kbcgroupnv/Rekeninguittreksel04.txt new file mode 100644 index 0000000000..5881a19b6e --- /dev/null +++ b/name.abuchen.portfolio.tests/src/name/abuchen/portfolio/datatransfer/pdf/kbcgroupnv/Rekeninguittreksel04.txt @@ -0,0 +1,23 @@ +``` +PDFBox Version: 1.8.17 +Portfolio Performance Version: 0.72.3.qualifier +System: win32 | x86_64 | 21.0.4+7-LTS | Azul Systems, Inc. +----------------------------------------- +ABBELOOS-STREUMER VICTOR-CHANTAL +Overzicht transacties en rekeninguittreksels voor klantnummer 4742538 +05/09/2024 +EUR-REKENING - 40 +Rekeninguittreksel Nr 32 Vorig Saldo: -0,47 EUR +05/09/2024 Provisionering rekening klant Valuta 05/09/2024 5,00 EUR +Mededeling: ABBELOOS-STREUMER V & C +Nieuw Saldo 4,53 EUR +Dit deposito komt in aanmerking voor depositobescherming. Meer info: www.kbc.be/depositobescherming +Heb je nog vragen ? Gelieve je te richten tot de Bolero order desk +ABBELOOS-STREUMER VICTOR-CHANTAL Pagina 1 +0964124 +_______________________________________________________________________________________ +KBC BANK NV Documentreferte: 41 +Havenlaan 2, 1080 Brussels, Belgium VAT BE 0462.920.226 +Account N° BE77 4096 5474 0142 - BIC KREDBEBB + +``` \ No newline at end of file