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

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

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

1. Why This Rule Triggers (Diagnostic Message)

BR-CO-16 requires the amount due for payment (BT-115) to equal BT-112 − paid amount (BT-113) + rounding amount (BT-114). You declared 1000.00 for BT-115, but the document's own stated figures give 1685.00 — a difference of -685.00 EUR. BT-113 (paid amount) is subtracted and BT-114 (rounding amount) is added — and BT-114 is signed, so a rounding-down carries a negative value. A payable amount that equals BT-112 on an invoice with a deposit is the usual shape of this failure.

2. How to Fix BR-CO-16

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