# ibr-023

Source: https://xmlvalid.com/rules/ibr-023

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

- Level: error
- Rule sets: PINT Billing rules 1.1.3, PINT Billing rules (as shipped with PINT AE) 1.0.4
- Context: `cac:InvoiceLine | cac:CreditNoteLine`
- Test: `exists(cbc:InvoicedQuantity/@unitCode) or exists(cbc:CreditedQuantity/@unitCode)`

Validate a document against these rules: https://xmlvalid.com/validate
