All rules · pint-om · error
IBR-075-OM
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($grossPrice) or $netPrice = $expectedNetPrice
Applied to nodes matching cac:InvoiceLine | cac:CreditNoteLine
Rule-pack versions
| Rule-pack | Layer | Severity | Applies to |
|---|---|---|---|
| pint-om-1.0.1 | pint-om | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-om-1.0.0 | pint-om | 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