VRBL-INV-PEPPOL-PINT-AUNZ-1p0-70

Basic Info

Rule The ABN must be provided in Buyer Legal Registration ID, when the Buyer Country Code is "AU".
Context /ubl:Invoice/cac:AccountingCustomerParty
Pattern vrbl-invoice-peppol-pint-au-nz
Severity fatal

Implementation

not($AU-CustomerCountry = 'AU')
or
cac:Party/cac:PartyLegalEntity/cbc:CompanyID >=1 
and
cac:Party/cac:PartyLegalEntity/cbc:CompanyID/@schemeID = '0151'