All rules · pint-base · error
ibr-022
Every invoice line must have an invoiced quantity.
Reviewed
Why this rule exists
The line amount is checked as quantity times price. With no quantity there is nothing to check it against.
Why it usually happens
- Service or lump-sum lines emitted with an amount but no quantity
- A quantity of zero being suppressed by a serializer that omits falsy values
How to fix it
Use quantity 1 with the unit code EA for lump-sum lines, rather than omitting the quantity.
Right
<cbc:InvoicedQuantity unitCode="EA">1</cbc:InvoicedQuantity>
The official rule
Each Invoice line (ibg-25) MUST have an invoiced quantity (ibt-129)..
Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.
Schematron test
exists(cbc:InvoicedQuantity) or exists(cbc:CreditedQuantity)
Applied to nodes matching cac:InvoiceLine | cac:CreditNoteLine
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
ibr-023 · ibr-026 · ibr-147-ae
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