VRBL-INV-MX-1p0-66

Basic Info

Rule Positions one and two of the Customs Declaration Number in Additional Document Reference ID must be less than or equal to the last two digits of the year of the Additional Document Reference Issue Date.
Context /ubl:Invoice/cac:AdditionalDocumentReference/cbc:ID
Pattern vrbl-invoice-mx-1p0
Severity fatal

Implementation

not(@schemeID = 'ABT')
or
number(substring(normalize-space(.), 1, 2)) <= number(substring(normalize-space(../cbc:IssueDate), 3, 2))