fatalEN 16931EN 16931 business ruleCIIUBLBT-92
The allowed maximum number of decimals for the Document level allowance amount (BT-92) is 2.
Document level allowance amount (BT-92) is written with more than 2 decimal places.
Round BT-92 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.
CII — context $Document_level_allowances
string-length(substring-after(../ram:ActualAmount[1],'.'))<=2
UBL — context cac:AllowanceCharge[cbc:ChargeIndicator = false()]
string-length(substring-after(cbc:Amount,'.'))<=2