Rules / IBR-091
IBR-091 error
Invoice amount due for payment must have no more than 2 decimals
Invoice amount due for payment (ibt-115) must have no more than 2 decimals.
Fails
<cbc:PayableAmount currencyID="AED">1250.125</cbc:PayableAmount>
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:PayableAmount, '.')) <= 2
Official text: Invoice amount due for payment (ibt-115) MUST have no more than 2 decimals.