All rules · pint-base · error

ibr-co-16

The amount due for payment must equal the total with tax, minus any amount already paid, plus any rounding amount.

Reviewed

Why this rule exists

This is the number the buyer actually pays. If it does not follow from the totals above it, the invoice is internally inconsistent and the payment will not match.

Why it usually happens

How to fix it

If you deduct anything from the payable amount, emit the element that declares the deduction.

Right
<cbc:TaxInclusiveAmount currencyID="AED">1050.00</cbc:TaxInclusiveAmount>
<cbc:PrepaidAmount currencyID="AED">50.00</cbc:PrepaidAmount>
<cbc:PayableAmount currencyID="AED">1000.00</cbc:PayableAmount>

The official rule

Amount due for payment (ibt-115) = Invoice total amount with Tax (ibt-112) - Paid amount (ibt-113) + Rounding amount (ibt-114).

Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.

Schematron test

(xs:decimal(cbc:PrepaidAmount) and not(xs:decimal(cbc:PayableRoundingAmount)) and (xs:decimal(cbc:PayableAmount) = (round((xs:decimal(cbc:TaxInclusiveAmount) - xs:decimal(cbc:PrepaidAmount)) * 10 * 10) div 100))) or (not(xs:decimal(cbc:PrepaidAmount)) and not(xs:decimal(cbc:PayableRoundingAmount)) and xs:decimal(cbc:PayableAmount) = xs:decimal(cbc:TaxInclusiveAmount)) or (xs:decimal(cbc:PrepaidAmount) and xs:decimal(cbc:PayableRoundingAmount) and ((round((xs:decimal(cbc:PayableAmount) - xs:decimal(cbc:PayableRoundingAmount)) * 10 * 10) div 100) = (round((xs:decimal(cbc:TaxInclusiveAmount) - xs:decimal(cbc:PrepaidAmount)) * 10 * 10) div 100))) or (not(xs:decimal(cbc:PrepaidAmount)) and xs:decimal(cbc:PayableRoundingAmount) and ((round((xs:decimal(cbc:PayableAmount) - xs:decimal(cbc:PayableRoundingAmount)) * 10 * 10) div 100) = xs:decimal(cbc:TaxInclusiveAmount)))

Applied to nodes matching cac:LegalMonetaryTotal

Rule-pack versions

Rule-packLayerSeverityApplies to
pint-om-1.0.1pint-baseerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice
pint-ae-2026.5pint-baseerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice
pint-eu-1.1.1pint-baseerrorbilling/creditnote, billing/invoice
pint-ae-2026.3pint-baseerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice
pint-om-1.0.0pint-baseerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice

Related rules

ibr-co-15 · ibr-091

Check your own invoice

Paste your XML and see every rule that fires, not just this one. Free, no sign-up, and we never store the document.

Open the validator