All rules · pint-base · error
ibr-023
Every invoice line must state a unit of measure code for the invoiced quantity.
Reviewed
Why this rule exists
Quantity without a unit is meaningless — three of what? The code list is UN/ECE Recommendation 20, so both parties read the same unit the same way.
Why it usually happens
- Omitting the unitCode attribute entirely
- Using a human abbreviation like "each", "pcs" or "hrs" instead of the UN/ECE code
How to fix it
Map your internal units to UN/ECE Rec 20 codes (EA each, HUR hour, KGM kilogram, MTR metre, LTR litre).
<cbc:InvoicedQuantity unitCode="each">3</cbc:InvoicedQuantity>
<cbc:InvoicedQuantity unitCode="EA">3</cbc:InvoicedQuantity>
The official rule
An Invoice line (ibg-25) MUST have an Invoiced quantity unit of measure code (ibt-130).
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/@unitCode) or exists(cbc:CreditedQuantity/@unitCode)
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
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