VRBL-INV-GR-1p0-6

Basic Info

Rule When the Seller Group is Greek, then the Seller Group Party Tax Scheme Company ID must start with 'EL' and must be a valid TIN number.
Context /ubl:Invoice/cac:AccountingSupplierParty
Pattern vrbl-invoice-gr-1p0
Severity fatal

Implementation

not($GRSupplierCountry= 'GR')
or
substring(normalize-space(cac:Party/cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']/cbc:CompanyID), 1, 2) = 'EL'