VRBL-INV-PH-1p0-8

Basic Info

Rule When the Invoice Subtype Code is CAS, the Item Name must exist within the Item Information.
Context /ubl:Invoice/cac:InvoiceLine/cac:Item
Pattern vrbl-invoice-ph-1p0
Severity fatal

Used Template: Exists

Parameter Value
probe = cbc:Name

Implementation

(
	not(normalize-space(/ubl:Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:InvoiceSubtypeCode) = 'VRBL:PH:CAS')
)
or
(
	boolean(cbc:Name)
)