Skip to content

Commit

Permalink
Modify Baader Bank PDF-Importer to support new transaction (#4417)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nirus2000 authored Dec 24, 2024
1 parent 870fab9 commit 49d08f6
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4246,6 +4246,37 @@ public void testDividende23WithSecurityInEUR()
}))));
}

@Test
public void testDividende24()
{
BaaderBankPDFExtractor extractor = new BaaderBankPDFExtractor(new Client());

List<Exception> errors = new ArrayList<>();

List<Item> results = extractor.extract(PDFInputFile.loadTestCase(getClass(), "Dividende24.txt"), errors);

assertThat(errors, empty());
assertThat(countSecurities(results), is(1L));
assertThat(countBuySell(results), is(0L));
assertThat(countAccountTransactions(results), is(1L));
assertThat(results.size(), is(2));
new AssertImportActions().check(results, CurrencyUnit.EUR);

// check security
assertThat(results, hasItem(security( //
hasIsin("NL0011683594"), hasWkn("A2JAHJ"), hasTicker(null), //
hasName("VanEck Mstr.DM Dividend.UC.ETF"), //
hasCurrencyCode("EUR"))));

// check dividends transaction
assertThat(results, hasItem(dividend( //
hasDate("2023-12-13T00:00"), hasShares(12.371), //
hasSource("Dividende24.txt"), //
hasNote("Transaction No.: 01473347"), //
hasAmount("EUR", 2.94), hasGrossValue("EUR", 3.46), //
hasTaxes("EUR", 0.52), hasFees("EUR", 0.00))));
}

@Test
public void testDividendeStorno01()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
PDFBox Version: 1.8.17
Portfolio Performance Version: 0.72.2
-----------------------------------------
Baader Bank AG Weihenstephaner Straße 4 85716 Unterschleißheim Scalable Capital GmbH
T 00800 00 586336* F +49 89 5150 2442 [email protected] Seitzstrasse 8e
80538 Munich
[email protected]
Page 1/2
Mr. Munich
2023-12-14
vreozuzRr iFD hpMsYV
czWGONTy 230 isFPzGhCs Cgg DHGNTE
0049 Th JFsdSEid Client ID: 9259468 Portfolio: 1
Sec. Account No.: 0303777450
THE NETHERLANDS Transaction No.: 01473347
Reference No.: 600986768
Fund Distribution
Ex-Date: 2023-12-06
Quantity ISIN: NL0011683594 WKN: A2JAHJ Distribution
Units 12.371 VanEck Mstr.DM Dividend.UC.ETF EUR 0.28 p. Unit
Payment Period: 2023-01-01 - 2023-12-31
Payday: 2023-12-13
Gross Amount EUR 3.46
Withholding tax EUR 0.52 -
Amount credited to account 9151651669 Value: 2023-12-13 EUR 2.94
Please ensure your compliance with the German foreign trade reporting regulations to the German Bundesbank (AWV-Meldung).
Please note that the income from capital assets are fully subject to income tax in Germany.
This document has been generated electronically and will not be signed.
Scalable Capital GmbH • Managing Directors: Erik Podzuweit, Florian Prucker, Martin Krebs, Dirk Urmoneit, Dirk Franzmeyer • HRB 217778, District Court
Munich • VAT No. DE300434774 • www.scalable.capital

Publisher and responsible for the content is Baader Bank Aktiengesellschaft • Weihenstephaner Strasse 4 • 85716 Unterschleissheim • Germany
Management Board: Nico Baader (CEO), Oliver Riedel (Deputy CEO) • Chairman of the Supervisory Board: Helmut Schreyer • Commercial Register HRB
121537 • Principal Office: Unterschleissheim • TaxNo: 143/107/04009 • VAT ID: DE114123893 • LEI: 529900JFOPPEDUR61H13 • T 00800 00 586336*
[email protected] DCUP-055.048

* Toll-free from (inter-) national landline networks. Charges may apply from other networks.

Fund Distribution
Continued: Page 2/2
Basis for Tax Calculation:
Assessment Bases Gross Tax Obligation Net Tax Obligation
Distribution equity fund before tax exemption EUR 3.46 EUR 3.46
Distribution equity fund after partial tax exemption EUR 2.42 EUR 2.42
Dividend Withholding Tax
Withholding tax 15.00% EUR 0.52 - EUR 0.52 -
Please ensure your compliance with the German foreign trade reporting regulations to the German Bundesbank (AWV-Meldung).
Please note that the income from capital assets are fully subject to income tax in Germany.
Please note that some German tax specific terms are not translated into English.
This document has been generated electronically and will not be signed.
Scalable Capital GmbH • Managing Directors: Erik Podzuweit, Florian Prucker, Martin Krebs, Dirk Urmoneit, Dirk Franzmeyer • HRB 217778, District Court
Munich • VAT No. DE300434774 • www.scalable.capital

Publisher and responsible for the content is Baader Bank Aktiengesellschaft • Weihenstephaner Strasse 4 • 85716 Unterschleissheim • Germany
Management Board: Nico Baader (CEO), Oliver Riedel (Deputy CEO) • Chairman of the Supervisory Board: Helmut Schreyer • Commercial Register HRB
121537 • Principal Office: Unterschleissheim • TaxNo: 143/107/04009 • VAT ID: DE114123893 • LEI: 529900JFOPPEDUR61H13 • T 00800 00 586336*
[email protected] DCUP-055.048

* Toll-free from (inter-) national landline networks. Charges may apply from other networks.
Original file line number Diff line number Diff line change
Expand Up @@ -1445,6 +1445,16 @@ private <T extends Transaction<?>> void addTaxesSectionsTransaction(T transactio
// @formatter:on
.section("withHoldingTax", "currency").optional() //
.match("^US withholding tax (?<currency>[\\w]{3}) (?<withHoldingTax>[\\.,\\d]+) \\-$") //
.assign((t, v) -> {
if (!type.getCurrentContext().getBoolean("noTax"))
processWithHoldingTaxEntries(t, v, "withHoldingTax", type);
})

// @formatter:off
// Withholding tax EUR 0.52 -
// @formatter:on
.section("withHoldingTax", "currency").optional() //
.match("^Withholding tax (?<currency>[\\w]{3}) (?<withHoldingTax>[\\.,\\d]+) \\-$") //
.assign((t, v) -> {
if (!type.getCurrentContext().getBoolean("noTax"))
processWithHoldingTaxEntries(t, v, "withHoldingTax", type);
Expand Down

0 comments on commit 49d08f6

Please sign in to comment.