SchemaGuard by Ironbark Digital · EN 16931 / Peppol / XRechnung Reference
← All 294 EN 16931 / Peppol Rules & Live Validator
FATAL Official EN 16931 / Peppol / CIUS Rule BT/BG Fields: BT-109

BR-CO-13 — E-Invoice Validation Rule & Fix

Fixture ID: brokenTotalsChain · XPath: N/A (Computed / Semantic Rule)

1. Why This Rule Triggers (Diagnostic Message)

BR-CO-13 requires the invoice total without VAT (BT-109) to equal BT-106 − document allowances (BT-107) + document charges (BT-108). You declared 1400.00 for BT-109, but the document's own stated figures give 1500.00 — a difference of -100.00 EUR. BT-107 and BT-108 are separate disclosures, not a net figure: a document allowance and a document charge of the same size leave BT-109 unchanged and still both appear. Check that your own BT-109 subtracts the allowances and adds the charges, in that order.

2. How to Fix BR-CO-13

Either correct the line data so it sums to your declared figure, or drop declaredTotals.taxExclusiveAmount and let the library compute it. Note that EN 16931 sums *rounded* line amounts: round each line to 2 decimals first, then add — rounding only the final sum drifts by a cent or two on long invoices.

3. Valid Code / Payload Example

"declaredTotals": { "taxExclusiveAmount": 1500.00 }
Test & Validate XML / JSON in Live SchemaGuard Validator →