VRBL-INV-PL-B2B-3-137

Basic Info

Rule When the Invoice Subtype Code is 'VRBL:PL:KOR', 'VRBL:PL:KOR_ZAL' or 'VRBL:PL:KOR_ROZ', the Invoice Document Reference must exist within the Invoice.
Context /ubl:Invoice
Pattern vrbl-invoice-pl-b2b-3p0
Severity fatal

Used Template: Exists

Parameter Value
probe = cac:BillingReference/cac:InvoiceDocumentReference

Implementation

(
	not(cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:InvoiceSubtypeCode = concat($VRBL-PL-Prefix, 'KOR') or cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:InvoiceSubtypeCode = concat($VRBL-PL-Prefix, 'KOR_ZAL') or cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:InvoiceSubtypeCode = concat($VRBL-PL-Prefix, 'KOR_ROZ'))
)
or
(
	boolean(cac:BillingReference/cac:InvoiceDocumentReference)
)