Reference
Markdown exportBR-DEC-17 Rounding amount must not exceed two decimal places
The BT-114 Rounding 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)
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-114 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
- BT-114 = 0.01 — two decimals accepted
Invalid Examples
- BT-114 = 0.005 — three decimals rejected
Code Examples
Valid XML
<cac:LegalMonetaryTotal>
<cbc:PayableRoundingAmount currencyID="EUR">0.01</cbc:PayableRoundingAmount>
</cac:LegalMonetaryTotal>Invalid XML
<cac:LegalMonetaryTotal>
<cbc:PayableRoundingAmount currencyID="EUR">0.005</cbc:PayableRoundingAmount>
</cac:LegalMonetaryTotal>