All rules · pint-base · error
ibr-088
The unit code of the price base quantity must match the unit code of the invoiced quantity.
Reviewed
Why this rule exists
The line amount is quantity times price-per-base-quantity. If the two units differ, the multiplication is comparing incompatible things.
Why it usually happens
- Quoting a price per 100 units while invoicing in a different unit
- Defaulting the base quantity unit to a constant
How to fix it
Copy the invoiced quantity unit code onto the base quantity rather than defaulting it.
The official rule
Unit code of price base quantity (ibt-150) MUST be same as invoiced quantity (ibt-130).
Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.
Schematron test
not(../../cbc:InvoicedQuantity or ../../cbc:CreditedQuantity) or (@unitCode = ../../cbc:InvoicedQuantity/@unitCode) or (@unitCode = ../../cbc:CreditedQuantity/@unitCode)
Applied to nodes matching cac:Price/cbc:BaseQuantity[@unitCode]
Rule-pack versions
| Rule-pack | Layer | Severity | Applies to |
|---|---|---|---|
| pint-om-1.0.1 | pint-base | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-ae-2026.5 | pint-base | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-eu-1.1.1 | pint-base | error | billing/creditnote, billing/invoice |
| pint-ae-2026.3 | pint-base | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-om-1.0.0 | pint-base | 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