VRBL-INV-PH-1p0-7

Basic Info

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

Used Template: Exists

Parameter Value
probe = cac:AccountingCustomerParty

Implementation

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