E-invoice rule explained · EN 16931
BR-DEC-23: Line net amount has more than two decimals
Official message
The allowed maximum number of decimals for the Invoice line net amount (BT-131) is 2.
- Severity
- Error (the invoice is rejected)
- Checked in
- UBL, CII
- Business terms
- BT-131
What does BR-DEC-23 mean?
The invoice line net amount (BT-131) may have at most two digits after the decimal point. The check simply counts the characters after the point, so 10.000 fails just like 9.999 does, even though it is the same as 10.00.
Usual causes
- The line amount was written as quantity × price without rounding, for example 3 × 3.3333 = 9.9999.
- The software writes amounts with a fixed number of decimals (three or four) for every number.
- Trailing zeros were kept from a calculation (10.000).
How do I fix BR-DEC-23?
- Round each line net amount to two decimals before writing it; the unit price (BT-146) may keep more decimals.
- Build the document totals and the VAT breakdown from the rounded line amounts, so the other sum checks still pass.
- Set your export to write all monetary amounts with exactly two decimals.
Corrected XML (minimal example we wrote)
UBL
<cac:InvoiceLine> <cbc:ID>1</cbc:ID> <cbc:InvoicedQuantity unitCode="H87">3</cbc:InvoicedQuantity> <cbc:LineExtensionAmount currencyID="EUR">10.00</cbc:LineExtensionAmount> <cac:Item> <cbc:Name>Widget</cbc:Name> </cac:Item> <cac:Price> <cbc:PriceAmount currencyID="EUR">3.3333</cbc:PriceAmount> </cac:Price></cac:InvoiceLine>
Example values only. Put the elements in place of, or beside, what your file has; element order matters in both syntaxes.
Check your file for free
The free checker runs the official EN 16931, XRechnung and Peppol rules in your browser. Your file is not uploaded.
In development — early access
Fix-and-explain for accountants and invoicing teams
A paid service that explains every failed rule in plain German, French, Dutch or English and proposes a corrected file is in development. Early access
Source
Rule id and official message from the CEN/TC 434 EN 16931 validation artefacts, validation-1.3.17 (EUPL-1.2), compiled from upstream commit 6e35e0a. The explanation, causes, fix and XML on this page are our own, not the rule publisher's. CEN/TC 434 EN 16931 validation artefacts validation-1.3.17