# aligned-ibr-005-aunz

Source: https://xmlvalid.com/rules/aligned-ibr-005-aunz

> An invoice must contain the Buyer's NZBN (ibt-047) if Buyer country (ibt-055) is New Zealand

- Level: error
- Rule sets: PINT A-NZ rules (Australia and New Zealand) 1.1.3
- Context: `cac:AccountingCustomerParty/cac:Party[$buyerCountry = 'NZ']`
- Test: `(string-length(cac:PartyLegalEntity/cbc:CompanyID)>=1 and cac:PartyLegalEntity/cbc:CompanyID/@schemeID = '0088')`

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