BR-DEC-23: Line net amount with more than two decimals
Invoice line net amounts may have at most two decimals.
- Severity
- Error the invoice fails validation.
- Rule set
- EN 16931 (CEN/TC 434)
- Where it applies
- EN 16931 invoices in UBL and CII, in every EU country
- XRechnung 3.0 in UBL and CII (Germany)
- Peppol BIS Billing 3.0
- ZUGFeRD / Factur-X, profile EN 16931 and above
- Business terms
- BT-131 Invoice line net amount
Official rule text
The allowed maximum number of decimals for the Invoice line net amount (BT-131) is 2.
What the rule checks
The rule counts the digits after the decimal point in cbc:LineExtensionAmount of each line. 12.345 fails, 12.35 and 12.3 pass.
The unit price (BT-146) and the quantity have no such limit: a price of 4.115 is fine. Only the amounts are limited, by this rule and its siblings BR-DEC-01 to BR-DEC-28.
Common causes
- The line amount is quantity × price without rounding, for example 3 × 4.115 = 12.345.
- The amount is written with trailing zeros from a fixed-point type, such as 12.3500.
How to fix it
Round each line net amount to two decimals before writing it, and compute the totals from the rounded line amounts so BR-CO-10 still holds.
Peppol and XRechnung also compare the line amount with quantity × price (PEPPOL-EN16931-R120) with a tolerance of 0.02, so normal rounding passes.
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="H87">3</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="EUR">12.345</cbc:LineExtensionAmount>
<!-- cac:Item … -->
<cac:Price>
<cbc:PriceAmount currencyID="EUR">4.115</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine><cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="H87">3</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="EUR">12.35</cbc:LineExtensionAmount>
<!-- cac:Item … -->
<cac:Price>
<cbc:PriceAmount currencyID="EUR">4.115</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>UBL excerpts; elements that play no part in the rule are left out.
Can the fix page repair it?
Yes, once you supply the value and confirm it. You enter the correct value; because it changes amounts or VAT data, it is applied only after you confirm. Fields inside lists go into the free field with an index, as shown below.
Field on the fix page: lines[0].netAmount
Check your invoice against the official rules
Upload an XML or PDF invoice. You get every failing rule with an explanation, the fix and the line in the file. Free, without sign-up; the check on this page stores nothing.
Processed in memory and not stored. No sign-up needed.
E-Invoicing API