Faktura

BR-DEC-12

fatalEN 16931EN 16931 business ruleCIIUBLBT-109

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

Why it fails

Invoice total amount without VAT (BT-109) is written with more than 2 decimal places.

How to fix it

Round BT-109 to 2 decimals before serialising it. This is a formatting rule, not an arithmetic one - the value itself is usually right, the XML just carries extra digits from a float. Format the amount as a fixed-point decimal string.

What the validator checks

CII — context $Document_totals

string-length(substring-after(ram:TaxBasisTotalAmount,'.'))<=2

UBL — context $Document_totals

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

Related rules

Part of BR-DEC — Decimal places.

Validate an invoice against this rule →