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 Ebase FNZ PDF-Importer #4441

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 @@ -5573,7 +5573,7 @@ public void testUmsatzabrechnung34()
hasDate("2024-04-29T00:00"), hasShares(128.804746), //
hasSource("Umsatzabrechnung34.txt"), //
hasNote("Ref.-Nr.: 1234123412/12341234"), //
hasAmount("EUR", 27.85), hasGrossValue("EUR", 32.97), //
hasAmount("EUR", 22.73), hasGrossValue("EUR", 27.85), //
hasTaxes("EUR", 4.48 + 0.24 + 0.40), hasFees("EUR", 0.00))));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -529,16 +529,19 @@ private void addDepotStatement_DividendeTransaction()

.oneOf( //
// @formatter:off
// Abwicklung über IBAN Institut Zahlungsbetrag
// DE123 European Bank for Financial Services 0,03 EUR
// Die Auszahlung erfolgt über die oben genannte Bankverbindung.
//
// Abwicklung über IBAN Institut Zahlungsbetrag
// DE56341234123412341234 Deutsche Kreditbank Berlin 25,24 EUR
// Die Auszahlung erfolgt über die oben genannte Bankverbindung.
//
// Abwicklung über IBAN Institut Zahlungsbetrag
// DE12341234123412341234 Deutsche Kreditbank Berlin 22,73 EUR
// @formatter:on
section -> section //
.attributes("amount", "currency") //
.find("Abwicklung über IBAN Institut Zahlungsbetrag") //
.match("^.* (?<amount>[\\.,\\d]+) (?<currency>[\\w]{3})$") //
.match("^Die Auszahlung erfolgt über die oben genannte Bankverbindung\\.$") //
.assign((t, v) -> {
t.setAmount(asAmount(v.get("amount")));
t.setCurrencyCode(asCurrencyCode(v.get("currency")));
Expand Down
Loading