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
- Emitting a gross price and a discount for display while the net price came from a different calculation
- Rounding the discount separately from the net price
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
| Rule-pack | Layer | Severity | Applies to |
|---|---|---|---|
| pint-ae-2026.5 | pint-ae | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-ae-2026.3 | pint-ae | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
Related rules
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