VRBL-INV-AE-1p0-124

Basic Info

Rule The Invoice Line Commodity Classification Code List ID MUST be 'HS' when the Invoice Line Commodity Classification Code is provided.
Context /ubl:Invoice/cac:InvoiceLine/cac:Item
Pattern vrbl-invoice-AE-1p0
Severity fatal

Implementation

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