VRBL-INV-AU-1p0-70

Basic Info

Rule The ABN must be provided in Buyer Party Legal Entity Company ID, when the Buyer Country Identification Code is "AU".
Context /ubl:Invoice/cac:AccountingCustomerParty
Pattern vrbl-invoice-au-1p0
Severity fatal

Implementation

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