Peppol BIS Billing 3.0.20 · UBL

BR-DEC-14: The allowed maximum number of decimals for the Invoice total amount with VAT (BT-112) is 2

Peppol BIS Billing 3.0.20 · UBL

fatalcountry

Original rule text

[BR-DEC-14]-The allowed maximum number of decimals for the Invoice total amount with VAT (BT-112) is 2.

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

BR-DEC-14 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-112.

What this rule requires

The rule requires that the Invoice total amount with VAT (BT-112) in cbc:TaxInclusiveAmount (UBL) or ram:GrandTotalAmount (CII) contains at most two digits after the decimal point. The test counts the characters following the first '.' in the amount; if there are more than two, the document fails validation with severity fatal. A value without a decimal point passes the test.

How to fix

Set the invoice total amount with VAT to a value with at most two decimal places, for example 1234.56. If the source system produces more than two decimals for this total, round or format it to two decimals before generating the XML.

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

Validate an invoice against these rules · All release changes