VRBL-INV-GR-1p0-7

Basic Info

Rule When the Seller Group is Greek, then the Seller Group must provide the Seller Tax ID used for VAT ID.
Context /ubl:Invoice/cac:AccountingSupplierParty
Pattern vrbl-invoice-gr-1p0
Severity fatal

Implementation

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