All rules · pint-om · error
IBR-023-OM
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
Where the Invoice type code [IBT-003] is '381' or '383' or '261', Credit Note or Debit Note reason code (BTOM-032) MUST be provided.
Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.
Schematron test
not($invoiceType='381' or $invoiceType='383' or $invoiceType='261') or cac:BillingReference/cac:InvoiceDocumentReference/cbc:DocumentStatusCode
Applied to nodes matching ubl:Invoice | cn:CreditNote
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