# ibr-004

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

> An Invoice MUST have an Invoice type code (ibt-003) / A Credit note MUST have a Credit note Type code (ibt-003).

- Level: error
- Rule sets: PINT Billing rules 1.1.3, PINT Billing rules (as shipped with PINT AE) 1.0.4
- Context: `/ubl:Invoice | /cn:CreditNote`
- Test: `normalize-space(cbc:InvoiceTypeCode) !='' or normalize-space(cbc:CreditNoteTypeCode) !=''`

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