GR-R-006: Greek Suppliers must provide the VAT number of the buyer, if the buyer is Greek
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[GR-R-006]-Greek Suppliers must provide the VAT number of the buyer, if the buyer is Greek
count(cac:PartyTaxScheme[normalize-space(cac:TaxScheme/cbc:ID) = 'VAT']/cbc:CompanyID)=1 and substring(cac:PartyTaxScheme[normalize-space(cac:TaxScheme/cbc:ID) = 'VAT']/cbc:CompanyID,1,2) = 'EL' and u:TinVerification(substring(cac:PartyTaxScheme[normalize-space(cac:TaxScheme/cbc:ID) = 'VAT']/cbc:CompanyID,3))GR-R-006 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
This rule applies to the buyer party (cac:AccountingCustomerParty/cac:Party) when both the supplier and the buyer are Greek (condition $isGreekSenderandReceiver). It requires that the party has exactly one VAT party tax scheme (cac:PartyTaxScheme with cac:TaxScheme/cbc:ID = VAT), and that its cbc:CompanyID starts with EL and passes the TIN verification check on the part after EL. A document fails if the count of such VAT entries is not 1, if the value does not start with EL, or if the TIN check is not satisfied.
How to fix
Ensure the buyer party contains exactly one cac:PartyTaxScheme with cac:TaxScheme/cbc:ID = VAT. In that element, set cbc:CompanyID to the buyer's Greek VAT number starting with EL and make sure the remaining part passes the validator's TIN check. Remove duplicate VAT tax schemes if there are more than one, or add this tax scheme if it is missing. If the value is present but fails, correct the VAT number.
Guidance on this rule. The original text above is authoritative.
Where to go next
GR-R-006 changed in 1 published Peppol BIS Billing UBL release comparison:
- GR-R-006 in 3.0.2 → 3.0.10: New rule
Validate an invoice against these rules · All release changes