GR-R-003: For the Greek Suppliers, the VAT must start with 'EL' and must be a valid TIN number
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[GR-R-003]-For the Greek Suppliers, the VAT must start with 'EL' and must be a valid TIN number
substring(.,1,2) = 'EL' and u:TinVerification(substring(.,3))GR-R-003 is a fatal rule in the country layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.
What this rule requires
For a Greek supplier (where the supplier country is GR or EL), the VAT identifier in cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID must start with the uppercase prefix EL and the part after that prefix must pass the TIN verification check (u:TinVerification). This is a fatal rule, so an invoice that does not meet this condition fails validation. The test checks substring(.,1,2) = 'EL' and u:TinVerification(substring(.,3)), meaning the first two characters must be exactly EL and the remaining characters must be accepted by the validator's TIN check.
How to fix
In the UBL invoice, locate the supplier party tax scheme for VAT (where cac:TaxScheme/cbc:ID is VAT) and set cbc:CompanyID to a value beginning with uppercase EL followed by a valid Greek tax identification number (the remainder must pass u:TinVerification). For example, if the TIN is valid, the value should be EL + the TIN. If the supplier country is not GR or EL, this rule does not apply; otherwise correct the CompanyID or the country data as needed.
Guidance on this rule. The original text above is authoritative.
Where to go next
GR-R-003 changed in 1 published Peppol BIS Billing UBL release comparison:
- GR-R-003 in 3.0.2 → 3.0.10: New rule
Validate an invoice against these rules · All release changes