BR-DEC-27: The allowed maximum number of decimals for the Invoice line charge amount (BT-141) is 2
Peppol BIS Billing 3.0.20 · UBL
Original rule text
[BR-DEC-27]-The allowed maximum number of decimals for the Invoice line charge amount (BT-141) is 2.
string-length(substring-after(cbc:Amount,'.'))<=2BR-DEC-27 is a fatal rule in the country layer of Peppol BIS Billing 3.0.20 · UBL. An invoice that breaks it is rejected. It refers to BT-141.
What this rule requires
The rule requires that the Invoice line charge amount (BT-141), as given in cbc:Amount for UBL or ram:ActualAmount for CII, has at most two decimal places. The test counts the characters after the decimal point; if there are more than two, the document fails validation.
How to fix
Set the amount in cbc:Amount (UBL) or ram:ActualAmount (CII) to a value with no more than two digits after the decimal point, e.g. 10.50 or 10.5. If the original amount has more decimals, round or truncate it to two decimals before sending.
Guidance on this rule. The original text above is authoritative.
Where to go next
No published Peppol BIS Billing UBL release comparison lists a change to BR-DEC-27.
Validate an invoice against these rules · All release changes