VRBL-INV-MX-1p0-93

Basic Info

Rule For a Foreign Trade Invoice, the Invoice Line Brand Name must exist within the Invoice Line Group.
Context /ubl:Invoice/cac:InvoiceLine/cac:Item
Pattern vrbl-invoice-mx-1p0
Severity fatal

Used Template: Exists

Parameter Value
probe = cbc:BrandName

Implementation

(
	not(../../cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:DocumentSupplements/vrbl:Supplement = 'VRBL:MX:ForeignTrade')
)
or
(
	boolean(cbc:BrandName)
)