Commit Graph
3 Commits
Author SHA1 Message Date
m3ta-chironandClaude Fable 5.2 34490db0ad fix(validator): make pdf_abgleich compare XML values with the PDF text
The check only recognized the English patterns "Invoice" and "Total:",
so it compared nothing on German invoices and always passed. It now
reports every key XML value (invoice number, net, VAT and gross total)
that does not appear in the PDF text, tolerant of number notation and
of columns running together in extracted text. Mismatches stay warnings.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-11 18:33:19 +01:00
m3ta-chironandClaude Fable 5.2 fa9eaa4f82 feat: extract due date and buyer reference, require it on XRechnung
- CII: due_date is read from the payment due date (BT-9) instead of the
  delivery terms description, normalized to YYYY-MM-DD
- new field buyer_reference (BT-10, the Leitweg-ID) for CII and UBL
- /validate accepts an optional profile; on XRECHNUNG_* profiles a
  missing buyer reference is a critical error (BR-DE-15)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-11 18:33:08 +01:00
sascha.koenig aeaa171bbf + validation schema 2026-02-17 11:33:32 +01:00