VRBL-INV-MX-1p0-53

Basic Info

Rule If the Buyer Tax Company ID is 'XAXX010101000' or 'XEXX010101000' the Buyer Tax Scheme ID must be VRBL:MX:616.
Context /ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cac:TaxScheme/cbc:ID
Pattern vrbl-invoice-mx-1p0
Severity fatal

Implementation

not(
	../../cbc:CompanyID = 'XAXX010101000'
	or
	../../cbc:CompanyID = 'XEXX010101000'
)
or
. = concat($VRBL-MX-Prefix,'616')