VRBL-INV-TR-1p2-18

Basic Info

Rule When the Invoice Type Code is VRBL:TR:HKS, the %{probe} must exist within the Item Information.
Context /ubl:Invoice/cac:InvoiceLine/cac:Item
Pattern vrbl-invoice-tr-1p2
Severity fatal

Used Template: Exists

Parameter Value
probe = cac:AdditionalItemIdentification[cbc:ID/@schemeID = concat($VRBL-TR-Prefix, 'KUNYENO')]

Implementation

(
	not(/ubl:Invoice/cbc:InvoiceTypeCode = concat($VRBL-TR-Prefix, 'HKS'))
)
or
(
	boolean(cac:AdditionalItemIdentification[cbc:ID/@schemeID = concat($VRBL-TR-Prefix, 'KUNYENO')])
)