Rules / IBR-122
IBR-122 error
Document level charge amount must have no more than 2 decimals
Document level charge amount (ibt-108) must have no more than 2 decimals.
Fails
<cbc:ChargeTotalAmount currencyID="AED">1250.125</cbc:ChargeTotalAmount>
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:ChargeTotalAmount, '.')) <= 2
Official text: Document level charge amount (ibt-108) MUST have no more than 2 decimals.