Files
m3ta-chironandClaude Opus 5.5 aa416d32b7
CI / test (push) Waiting to run
CI / docker (push) Waiting to run
fix(validator): accept genuine zero totals in the required-field check
pflichtfelder rejected every invoice whose net, VAT or gross total was 0.
The extractor reads an absent total as 0, so this could not tell a missing
value from a real zero and rejected tax-exempt / reverse-charge invoices
(VAT 0, e.g. customs agent invoices) and zero-sum invoices.

A zero total now counts as missing only when the rest of the invoice
implies another value: net vs. the line items, VAT total vs. the VAT
breakdown, gross vs. net plus VAT.

Closes zugferd-esf.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 07:29:29 +01:00
..