Message

Document level amounts cannot have more than 2 decimals

Context
/ubl:CreditNote/cac:AllowanceCharge
Test
string-length(substring-after(cbc:Amount, '.')) <= 2