BR-DEC-11: The allowed maximum number of decimals for the Sum of charges on document level (BT-108)…
Peppol BIS Billing 3.0.20 · UBL
Original rule text
[BR-DEC-11]-The allowed maximum number of decimals for the Sum of charges on document level (BT-108) is 2.
string-length(substring-after(cbc:ChargeTotalAmount,'.'))<=2BR-DEC-11 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-108.
What this rule requires
The rule requires that the document-level sum of charges, BT-108, given in cac:LegalMonetaryTotal/cbc:ChargeTotalAmount (UBL) or ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:ChargeTotalAmount (CII), has no more than two decimal places. The test counts the characters after the .; if there are more than two, the document fails. This is a fatal rule, so such an invoice is rejected by validation.
How to fix
Reduce the number of decimal places in the charge total amount to at most two. For example, change 1.234 to 1.23 or 1.2; 1.20 is also acceptable. Ensure the value in the XML uses . as the decimal separator and not more than two digits after it.
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-11.
Validate an invoice against these rules · All release changes