Reference
Markdown exportBR-DEC-15 Invoice total VAT amount in accounting currency must not exceed two decimal places
The BT-111 Invoice total VAT amount in accounting currency is limited to a maximum of two decimal places. Any value carrying three or more fractional digits fails EN16931 validation.
Problem Description
The BT-111 Invoice total VAT amount in accounting currency is limited to a maximum of two decimal places. Any value carrying three or more fractional digits fails EN16931 validation.
ERROR
XRechnung 3.0
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.
Solution
Round BT-111 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
Valid Examples
Use these points as the practical checks for this section.
- BT-111 = 185.00 — two decimals accepted
Invalid Examples
Use these points as the practical checks for this section.
- BT-111 = 185.000 — three decimals rejected
Code Examples
<cac:TaxTotal>
<cbc:TaxAmount currencyID="USD">185.00</cbc:TaxAmount>
</cac:TaxTotal><cac:TaxTotal>
<cbc:TaxAmount currencyID="USD">185.000</cbc:TaxAmount>
</cac:TaxTotal>