VRBL-INV-AE-1p0-106

Basic Info

Rule When Invoice Line Tax ID is 'AE', the Invoice Line Commodity Classification Code used as Goods Type must exist within the Invoice Line Group.
Context /ubl:Invoice/cac:InvoiceLine/cac:Item
Pattern vrbl-invoice-AE-1p0
Severity fatal

Used Template: Exists

Parameter Value
probe = cac:CommodityClassification/cbc:ItemClassificationCode[(@listID = 'VRBL:AE:GoodsType')]
displayName_probe = %{cac:CommodityClassification/cbc:ItemClassificationCode} used as Goods Type

Implementation

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