Message

Document level amounts cannot have more than 2 decimals

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