# ibr-088

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

> Unit code of price base quantity (ibt-150) MUST be same as invoiced quantity (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:Price/cbc:BaseQuantity[@unitCode]`
- Test: `not(../../cbc:InvoicedQuantity or ../../cbc:CreditedQuantity) or (@unitCode = ../../cbc:InvoicedQuantity/@unitCode) or (@unitCode = ../../cbc:CreditedQuantity/@unitCode)`

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