Home
/
Versions
2017
Rules
GR-R-001-3
Cius
BIS3 Greece
Validation message
When the Supplier is Greek, the Invoice Id second segment must be a valid Date that matches the invoice Issue Date
UBL
Context
Copied
1
/ubl-invoice:Invoice/cbc:ID[$isGreekSender] | /ubl-creditnote:CreditNote/cbc:ID[$isGreekSender]
Rule
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])
Used in business terms
BT-1