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

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

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

1. Why This Rule Triggers (Diagnostic Message)

BR-CO-10 requires the sum of invoice line net amounts (BT-106) to equal Σ BT-131. You declared 1.00 for BT-106, but the invoice lines compute to 1500.00 — a difference of -1499.00 EUR. This is a pure addition check, so a mismatch means either a line is missing from your total or a line amount was rounded differently.

2. How to Fix BR-CO-10

Either correct the line data so it sums to your declared figure, or drop declaredTotals.lineExtensionAmount 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": { "lineExtensionAmount": 1500.00 }
Test & Validate XML / JSON in Live SchemaGuard Validator →