Message

The allowed maximum number of decimals for the Invoice line charge amount (BT-141) is 2.

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