GR-R-001-3: When the Supplier is Greek, the Invoice Id second segment must be a valid Date that…
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[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
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])GR-R-001-3 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
The rule applies when the supplier country is GR or EL. For cbc:ID in an Invoice or CreditNote, the value must use | as the segment separator and the second segment must be a non-empty date that matches the invoice issue date (cbc:IssueDate). The date in the second segment must be in day/month/year order and, because the test tokenizes it on /, use / as separator; it must equal the issue date's day, month and year exactly. A document fails when the second segment is missing, not a valid date, not slash-separated, or its day/month/year do not match the issue date.
How to fix
Set the second |-separated segment of cbc:ID to the issue date in DD/MM/YYYY format, using / as separator, and ensure the day, month and year match cbc:IssueDate exactly, including leading zeros as they appear in cbc:IssueDate (e.g. 15/01/2025 for issue date 2025-01-15). Ensure the supplier country is GR or EL if this rule should apply.
Guidance on this rule. The original text above is authoritative.
Where to go next
GR-R-001-3 changed in 1 published Peppol BIS Billing UBL release comparison:
- GR-R-001-3 in 3.0.2 → 3.0.10: New rule
Validate an invoice against these rules · All release changes