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>
- 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>