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

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

Fixture ID: overPreciseAccountingAmounts · XPath: /ubl:Invoice/cac:LegalMonetaryTotal/cbc:PrepaidAmount

1. Why This Rule Triggers (Diagnostic Message)

The paid amount (BT-113) is 10.005, which carries 3 decimals; EN 16931 allows at most 2. BT-113 is money that has already moved — a deposit, a prepayment, a part-settlement — so it is by definition a figure some bank has already booked to the cent, and a value with more precision than that describes a payment nobody made. It also feeds BT-115 directly (BR-CO-16 derives the amount due from it), so the extra digits propagate into the one number the buyer actually pays.

2. How to Fix BR-DEC-16

Round paidAmount to 2 decimals, taking the value from the payment record rather than recomputing it from a percentage of the invoice total.

3. Valid Code / Payload Example

"paidAmount": 500.00
Test & Validate XML / JSON in Live SchemaGuard Validator →