VRBL-INV-MX-1p0-28
Basic Info
| Rule | The years in Invoice Start Date and Invoice End Date must be the same, and the invoice must belong to the current year or the immediate previous year. |
| Context |
/ubl:Invoice/cac:InvoicePeriod
|
| Pattern | vrbl-invoice-mx-1p0 |
| Severity | fatal |
Implementation
(
$StartDateYear = $EndDateYear
)
and
(
$StartDateYear = $CurrentYear
or
$StartDateYear = string((number($CurrentYear) - 1))
)