Alle drei Bank-Parser gegen die realen Fixtures gehaertet:
- DKB/VR/HVB: Sammlung endet am Schlusssaldo (break), damit Summen,
Rechnungsabschluss und Hinweisseiten nicht mehr in die letzte Buchung
rutschen.
- Generische, rein strukturelle Noise-Filter fuer wiederkehrende
Seitenfuss-/Kopfbloecke und Blattwechsel-Reste (keine Kontodaten hart
codiert); Kopf-/Hinweisbloecke werden als Sequenz uebersprungen.
- VR: Rekonstruktion harter Zeilenumbrueche im Verwendungszweck unter
konservativen Schutzbedingungen (nur purpose, nicht counterparty).
- Neue Noise- und expected-Value-Tests; expected_*.json gitignored.
- Audit-Werkzeug scripts/parser_audit.py ergaenzt (nur lokale Nutzung).
Transaktionszahlen und Saldo-Differenzen unveraendert; max. Laenge des
Verwendungszwecks je Bank deutlich unter 300 Zeichen.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- parse_german_amount: Fix non-breaking space (U+00A0) handling in second replace call
was: .replace(" ", "").replace(" ", "") → now: .replace(" ", "").replace("\xa0", "")
- parse_german_date: Catch ValueError from invalid calendar dates (e.g., 31.02.2026)
and raise ParserError with "Ungültiges Datum" message instead
- Add test for non-breaking space amount parsing
- Add test for invalid date error handling with pytest.raises
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- ParsedTransaction und ParsedStatement Datenklassen
- parse_german_amount(): German format number parsing (1.234,56 -> Decimal)
- parse_german_date(): DD.MM.YYYY date parsing with optional year
- detect_bank(): Recognize VR/HVB/DKB from text markers
- balance_difference(): Validate statement balance consistency
- dedup_hash(): SHA256-based transaction deduplication
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>