GR-R-001-5: When Supplier is Greek, the Invoice Id in the fourth segment must be a valid greek…
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[GR-R-001-5]-When Supplier is Greek, the Invoice Id in the fourth segment must be a valid greek document type
string-length(normalize-space($IdSegments[4]))>0 and (some $c in $greekDocumentType satisfies $IdSegments[4] = $c)GR-R-001-5 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 fatal rule applies when the supplier country is Greece (GR or EL). In UBL, the cbc:ID on Invoice or CreditNote must be split by |; the fourth segment must be non-empty and exactly equal one of the Greek document type codes 1.1, 1.6, 2.1, 2.4, 5.1, 5.2. A document fails validation if the fourth segment is missing, empty, or contains any value not in that list, including surrounding whitespace, because the comparison is exact.
How to fix
Set the fourth pipe-separated segment of cbc:ID to exactly one of 1.1, 1.6, 2.1, 2.4, 5.1, 5.2 with no leading or trailing spaces. If the current value has fewer than four segments, add a fourth segment; this rule does not constrain the first three segments, so ensure they comply with any other applicable requirements.
Guidance on this rule. The original text above is authoritative.
Where to go next
GR-R-001-5 changed in 2 published Peppol BIS Billing UBL release comparisons:
- GR-R-001-5 in 3.0.10 → 3.0.15: Behaviour changed without the rule changing
- GR-R-001-5 in 3.0.2 → 3.0.10: New rule
Validate an invoice against these rules · All release changes