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-15 — E-Invoice Validation Rule & Fix

Fixture ID: parsedTotalsAbsent · XPath: /ubl:Invoice/cac:LegalMonetaryTotal/cbc:PayableAmount

1. Why This Rule Triggers (Diagnostic Message)

An invoice must have the Amount due for payment (BT-115), and this document does not state it: there is no element at /ubl:Invoice/cac:LegalMonetaryTotal/cbc:PayableAmount. It is the only figure on the document that says what to actually pay — it differs from BT-112 whenever a prepayment (BT-113) or a rounding amount (BT-114) applies. The value was not inferred from the lines — a document total is a statement the issuer makes, and a validator's job is to check it, not to supply it. The rest of this report still uses the totals computed from the lines, so you can see what the document ought to have said.

2. How to Fix BR-15

Add cbc:PayableAmount to the document with the amount the issuing system computed. If you are generating the document with this library, generation always emits all of the document totals, so this cannot happen on the way out — it means the file was produced by something else.

3. Valid Code / Payload Example

Test & Validate XML / JSON in Live SchemaGuard Validator →