Rules / IBR-121
IBR-121 error
Document level allowance amount must have no more than 2 decimals
Document level allowance amount (ibt-107) must have no more than 2 decimals.
Fails
<cbc:AllowanceTotalAmount currencyID="AED">1250.125</cbc:AllowanceTotalAmount>
Fix
Round the amount to 2 decimals. Round each figure once, at the end of its calculation, and sum the rounded figures.
Schematron
- Context
cac:LegalMonetaryTotal- Test
string-length(substring-after(cbc:AllowanceTotalAmount, '.')) <= 2
Official text: Document level allowance amount (ibt-107) MUST have no more than 2 decimals.