VRBL-INV-AE-1p0-120

Basic Info

Rule When the Invoice Line Item Type Code is 'VRBL:AE:G' (Goods), the Invoice Line Commodity Classification Code MUST be provided.
Context /ubl:Invoice/cac:InvoiceLine/cac:Item
Pattern vrbl-invoice-AE-1p0
Severity fatal

Implementation

not(cbc:ItemTypeCode = 'VRBL:AE:G') 
or 
cac:CommodityClassification/cbc:ItemClassificationCode[not(@listID = 'VRBL:AE:GoodsType')]