IS-R-008: If seller is icelandic and invoice contains supporting description EINDAGI then the id…
Peppol BIS Billing 3.0.10 · UBL
Original rule text
[IS-R-008]-If seller is icelandic and invoice contains supporting description EINDAGI then the id form must be YYYY-MM-DD — Ef seljandi er íslenskur þá skal eindagi (BT-122, DocumentDescription = EINDAGI) vera á forminu YYYY-MM-DD.
(exists(cac:AdditionalDocumentReference[cbc:DocumentDescription = 'EINDAGI']) and string-length(cac:AdditionalDocumentReference[cbc:DocumentDescription = 'EINDAGI']/cbc:ID) = 10 and (string(cac:AdditionalDocumentReference[cbc:DocumentDescription = 'EINDAGI']/cbc:ID) castable as xs:date)) or not(exists(cac:AdditionalDocumentReference[cbc:DocumentDescription = 'EINDAGI']))IS-R-008 is a fatal rule in the country layer of Peppol BIS Billing 3.0.10 · UBL. An invoice that breaks it is rejected. It refers to BT-122.
What this rule requires
In a UBL Invoice or CreditNote where the supplier country is 'IS' (Iceland), if there is an AdditionalDocumentReference with DocumentDescription equal to 'EINDAGI', its ID must be exactly 10 characters long and castable as xs:date, meaning a valid date in YYYY-MM-DD format. If no such AdditionalDocumentReference exists, the rule passes. This is a fatal rule, so an Icelandic supplier invoice with that reference and an ID that is not a valid YYYY-MM-DD date fails validation.
How to fix
Ensure that the cac:AdditionalDocumentReference where cbc:DocumentDescription = 'EINDAGI' has a cbc:ID value that is a valid calendar date in exactly YYYY-MM-DD format, for example 2024-12-31. If the EINDAGI reference is not needed, omit the whole cac:AdditionalDocumentReference element.
Guidance on this rule. The original text above is authoritative.
Where to go next
IS-R-008 changed in 1 published Peppol BIS Billing UBL release comparison:
- IS-R-008 in 3.0.2 → 3.0.10: New rule
Validate an invoice against these rules · All release changes