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

PEPPOL-EN16931-R120 — E-Invoice Validation Rule & Fix

Fixture ID: declaredLineAndBreakdownDisagree · XPath: /ubl:Invoice/cac:InvoiceLine[1]/cbc:LineExtensionAmount

1. Why This Rule Triggers (Diagnostic Message)

Line 1 states a net amount (BT-131) of 77.77, but its own quantity, price and line-level allowances and charges compute to 1500.00 — a difference of -1422.23 EUR. The line net amount is not a figure you get to state independently: it is BT-129 × (BT-146 / BT-149) − Σ BT-136 + Σ BT-141.

2. How to Fix PEPPOL-EN16931-R120

Either correct the quantity (BT-129), the item net price (BT-146), the base quantity (BT-149) or the line allowances and charges so they produce 77.77, or drop declaredTotals.lineNetAmounts and let the library compute the line. Round the line once, at the end, to two decimals — rounding the price first is the usual cause of a one-cent break.

3. Valid Code / Payload Example

"quantity": 10, "unitPrice": 150
Test & Validate XML / JSON in Live SchemaGuard Validator →