Reference
Markdown exportBR-DEC-27 Invoice line charge amount must not exceed two decimal places
The BT-141 Invoice line charge amount is limited to a maximum of two decimal places. Any value carrying three or more fractional digits fails EN16931 validation.
Problem Description
ERROR
EN 16931 decimal precision rule (BR-DEC)
Interactive pipeline
Where BR-DEC-27 is checked
Click a stage to see what it checks, or type a rule ID to light up the stage that reports it.
BR-DEC-27 EN 16931 decimals rule
Reported in stage 2: EN 16931 rules.
Level error: the report recommends rejecting the invoice.
Stage 2 · What it checks
EN 16931 rules
- The core business terms are present (BR-01 to BR-65).
- Totals add up and related fields agree (BR-CO); codes and decimals are valid (BR-CL, BR-DEC).
- Each VAT category is consistent: S, Z, E, AE, K, G, O, L, M (BR-S, BR-Z, BR-AE, BR-IC …).
Example codes
Typical fix
Recalculate totals and VAT from the line data, and correct the VAT category in the source data.
Solution
Round BT-141 to two decimal places before serialising the amount, and apply the same rounding used in the BR-CO total and sum calculations so the invoice still reconciles.
Quick actions
Context and Significance
This is an EN16931 core decimal-precision constraint enforced by KoSIT: every monetary amount in the invoice must be expressed with no more than two decimals.
Valid Examples
- BT-141 = 5.00 — two decimals accepted
Invalid Examples
- BT-141 = 5.005 — three decimals rejected
Code Examples
<cac:InvoiceLine>
<cac:AllowanceCharge>
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
<cbc:Amount currencyID="EUR">5.00</cbc:Amount>
</cac:AllowanceCharge>
</cac:InvoiceLine><cac:InvoiceLine>
<cac:AllowanceCharge>
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
<cbc:Amount currencyID="EUR">5.005</cbc:Amount>
</cac:AllowanceCharge>
</cac:InvoiceLine>