GR-R-001-2: When the Supplier is Greek, the Invoice Id first segment must be a valid TIN Number and…
Peppol BIS Billing 3.0.10 · UBL
fatalcountry
Original rule text
When the Supplier is Greek, the Invoice Id first segment must be a valid TIN Number and match either the Supplier's or the Tax Representative's Tin Number
Stored validation assertion
string-length(normalize-space($IdSegments[1])) = 9 and u:TinVerification($IdSegments[1]) and ($IdSegments[1] = /*/cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']/substring(cbc:CompanyID, 3, 9) or $IdSegments[1] = /*/cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']/substring(cbc:CompanyID, 3, 9) )
GR-R-001-2 is a fatal rule in the country layer of Peppol BIS Billing 3.0.10 · UBL. An invoice that breaks it is rejected.
Where to go next
GR-R-001-2 changed in 1 published Peppol BIS Billing UBL release comparison: