All rules · pint-ae · error

aligned-ibrp-004

The item net price must equal the gross price minus the price discount.

Reviewed

Why this rule exists

The net price is what the line amount is computed from. If it disagrees with the gross price and discount you also stated, the two arithmetic paths through the document give different answers.

Why it usually happens

How to fix it

Compute net = gross - discount once, and serialize all three from that single computation.

The official rule

Item net price (ibt-146) MUST equal (Gross price (ibt-148) - Price discount (ibt-147)) when gross price is provided.

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

Schematron test

not(cbc:BaseAmount) or (../cbc:PriceAmount castable as xs:decimal and cbc:BaseAmount castable as xs:decimal and cbc:Amount castable as xs:decimal and xs:decimal(../cbc:PriceAmount) = xs:decimal(cbc:BaseAmount) - xs:decimal(cbc:Amount))

Applied to nodes matching cac:Price/cac:AllowanceCharge

Rule-pack versions

This rule changed between versions. If your invoices passed under an older pack and now fail, this is why.
Rule-packLayerSeverityApplies to
pint-ae-2026.5pint-aeerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice
pint-ae-2026.3pint-aeerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice

Related rules

ibr-147-ae · ibr-027

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