PintLint

Rules / IBR-023

An Invoice line must have an Invoiced quantity unit of measure code

An Invoice line (ibg-25) must have an Invoiced quantity unit of measure code (ibt-130).

Fails

<cbc:InvoicedQuantity>10</cbc:InvoicedQuantity>
<!-- no unitCode -->

Fix

Add @unitCode to cbc:InvoicedQuantity (cbc:CreditedQuantity on credit notes), for example C62 for pieces or HUR for hours.

Schematron
Context
cac:InvoiceLine | cac:CreditNoteLine
Test
exists(cbc:InvoicedQuantity/@unitCode) or exists(cbc:CreditedQuantity/@unitCode)

Official text: An Invoice line (ibg-25) MUST have an Invoiced quantity unit of measure code (ibt-130).

Official · PINT shared rules. Severity: error. Runs on UBL XML and on JSON.

Check your invoice for this rule