VRBL-INV-CN-1p0-2

Basic Info

Rule When the Invoice Type Code is 380, the Invoice Subtype Code must exist within the Invoice.
Context /ubl:Invoice
Pattern vrbl-invoice-cn-1p0
Severity fatal

Used Template: Exists

Parameter Value
probe = cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:InvoiceSubtypeCode

Implementation

(
	not(cbc:InvoiceTypeCode = '380')
)
or
(
	boolean(cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:InvoiceSubtypeCode)
)