# ibr-022

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

> Each Invoice line (ibg-25) MUST have an invoiced quantity (ibt-129)..

- 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) or exists(cbc:CreditedQuantity)`

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