PintLint

Rules / IBR-124

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 cbc:TaxAmount to 2 decimals. Round each figure once, at the end of its calculation, and add up 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 your invoice for this rule