VRBL-INV-GR-1p0-11

Basic Info

Rule The Buyer Group must provide Party Tax Scheme Company ID, if the buyer is Greek.
Context /ubl:Invoice/cac:AccountingCustomerParty
Pattern vrbl-invoice-gr-1p0
Severity fatal

Implementation

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