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

How to fix it

Map your internal units to UN/ECE Rec 20 codes (EA each, HUR hour, KGM kilogram, MTR metre, LTR litre).

Wrong
<cbc:InvoicedQuantity unitCode="each">3</cbc:InvoicedQuantity>
Right
<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-packLayerSeverityApplies to
pint-om-1.0.1pint-omerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice
pint-om-1.0.0pint-omerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice

Related rules

ibr-088 · ibr-130

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