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

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

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-packLayerSeverityApplies to
pint-om-1.0.1pint-baseerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice
pint-ae-2026.5pint-baseerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice
pint-eu-1.1.1pint-baseerrorbilling/creditnote, billing/invoice
pint-ae-2026.3pint-baseerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice
pint-om-1.0.0pint-baseerrorbilling/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