Message

The allowed maximum number of decimals for the Document level charge base amount (BT-100) is 2.

Context
/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = true()]
Test
string-length(substring-after(cbc:BaseAmount,'.'))<=2
Usage
/ ubl:Invoice / cac:AllowanceCharge / cbc:BaseAmount
/ ubl:CreditNote / cac:AllowanceCharge / cbc:BaseAmount