VRBL-INV-PH-1p0-23

Basic Info

Rule When the Invoice Subtype Code is CAS, the Billing Software Number must exist within the Invoice.
Context /ubl:Invoice
Pattern vrbl-invoice-ph-1p0
Severity fatal

Used Template: Exists

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

Implementation

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