# GR-R-001-3

Source: https://xmlvalid.com/rules/GR-R-001-3

> When the Supplier is Greek, the Invoice Id second segment must be a valid Date that matches the invoice Issue Date

- Level: error
- Rule sets: Peppol BIS Billing 3.0 rules 3.0.21
- Context: `/ubl-invoice:Invoice/cbc:ID[$isGreekSender] | /ubl-creditnote:CreditNote/cbc:ID[$isGreekSender]`
- Test: `string-length(normalize-space($IdSegments[2]))>0 and matches($IdSegments[2],$dateRegExp) and ($tokenizedIdDate[1] = $tokenizedUblIssueDate[3] and $tokenizedIdDate[2] = $tokenizedUblIssueDate[2] and $tokenizedIdDate[3] = $tokenizedUblIssueDate[1])`

Validate a document against these rules: https://xmlvalid.com/validate
