Message

The allowed maximum number of decimals for the Sum of charges on document level (BT-108) is 2.

Context
cac:LegalMonetaryTotal
Test
string-length(substring-after(cbc:ChargeTotalAmount,'.'))<=2
Usage
/ ubl:Invoice / cac:LegalMonetaryTotal / cbc:ChargeTotalAmount
/ ubl:CreditNote / cac:LegalMonetaryTotal / cbc:ChargeTotalAmount