aligned-ibr-005-aunz
An invoice must contain the Buyer's NZBN (ibt-047) if Buyer country (ibt-055) is New Zealand
error: the document is invalid
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element
PINT A-NZ rules (Australia and New Zealand) 1.1.3
PINT A-NZ self-billing 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')
Checked with PINT A-NZ Invoice, PINT A-NZ Credit Note