VRBL-INV-FR-CIUS-1p0-F1-34
Basic Info
|
Rule
|
If both Sub Invoice Line Invoice Start Date and Sub Invoice Line Invoice End Date are given then the Sub Invoice Line Invoice End Date must be later or equal to the Sub Invoice Line Invoice Start Date. |
|
Context
|
/ubl:Invoice/cac:InvoiceLine/cac:SubInvoiceLine/cac:InvoicePeriod
|
|
Pattern
|
vrbl-invoice-fr-cius-1p0-ppf-flow1 |
|
Severity
|
warning |
Used Template: EndDateEqualOrLaterStartDate
| Parameter |
|
Value |
| StartDate |
= |
cbc:StartDate
|
| EndDate |
= |
cbc:EndDate
|
Implementation
not(boolean(cbc:StartDate))
or
not(boolean(cbc:EndDate))
or
number(
concat(
substring(cbc:EndDate, 1, 4),
substring(cbc:EndDate, 6, 2),
substring(cbc:EndDate, 9, 2)
)
)
>=
number(
concat(
substring(cbc:StartDate, 1, 4),
substring(cbc:StartDate, 6, 2),
substring(cbc:StartDate, 9, 2)
)
)