VRBL-INV-IT-1p2-123

Basic Info

Rule The Tax Representative Tax Company ID used as VAT ID must begin with a valid Alpha-2 Country Code.
Context /ubl:Invoice/cac:TaxRepresentativeParty/cac:PartyTaxScheme/cbc:CompanyID
Pattern vrbl-invoice-it-1p2
Severity fatal

Implementation

not(../cac:TaxScheme/cbc:ID = 'VAT')
or
contains($VRBL-CL-CountryCode, concat(' ', substring(normalize-space(.), 1, 2), ' '))