VRBL-INV-MX-1p0-28

Basic Info

Rule The years in Invoicing Period Start Date and Invoicing Period 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))
)