PintLint

Rules / IBR-124

IBR-124 error

Invoice total TAX amount must have no more than 2 decimals

Invoice total TAX amount (ibt-110) must have no more than 2 decimals.

Fails

<cbc:TaxAmount currencyID="AED">1250.125</cbc:TaxAmount>

Fix

Round the amount to 2 decimals. Round each figure once, at the end of its calculation, and sum the rounded figures.

Schematron
Context
/ubl:Invoice/cac:TaxTotal | /cn:CreditNote/cac:Taxtotal
Test
string-length(substring-after(cbc:TaxAmount, '.')) <= 2

Official text: Invoice total TAX amount (ibt-110) MUST have no more than 2 decimals.

Official · PINT shared rules. Severity: error. Runs on UBL XML.

Check an invoice