VRBL-INV-PT-2p1-87

Basic Info

Rule The Buyer Tax Company ID does not meet the defined format: value preceded by the country code, according to ISO code list 3166-1.
Context /ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID
Pattern vrbl-invoice-pt-2p1
Severity fatal

Implementation

((not(contains(substring(normalize-space(.),1,2), ' ')) and contains($VRBL-CL-CountryCode, concat(' ', substring(normalize-space(.),1,2), ' '))))