Peppol BIS Billing 3.0.20 · UBL

BR-DEC-12: The allowed maximum number of decimals for the Invoice total amount without VAT (BT-109)…

Peppol BIS Billing 3.0.20 · UBL

fatalcountry

Original rule text

[BR-DEC-12]-The allowed maximum number of decimals for the Invoice total amount without VAT (BT-109) is 2.

Stored validation assertion
string-length(substring-after(cbc:TaxExclusiveAmount,'.'))<=2

BR-DEC-12 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-109.

What this rule requires

The rule requires that the invoice total amount without VAT (BT-109), given in cbc:TaxExclusiveAmount (UBL) or ram:TaxBasisTotalAmount (CII), has no more than two digits after the decimal point. The test checks the length of the part after . and fails if it is longer than 2, for example 123.456 fails while 123.45 passes.

How to fix

Change the invoice total amount without VAT to have at most two decimal places, e.g. round or truncate 123.456 to 123.45 or 123.46. In UBL this is cac:LegalMonetaryTotal/cbc:TaxExclusiveAmount; in CII it is //ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:TaxBasisTotalAmount.

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-12.

Validate an invoice against these rules · All release changes