fatalEN 16931EN 16931 business ruleCIIUBLBT-108
The allowed maximum number of decimals for the Sum of charges on document level (BT-108) is 2.
Sum of charges on document level (BT-108) is written with more than 2 decimal places.
Round BT-108 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_totals
string-length(substring-after(ram:ChargeTotalAmount,'.'))<=2
UBL — context $Document_totals
string-length(substring-after(cbc:ChargeTotalAmount,'.'))<=2