VRBL-INV-PL-B2B-3-80

Basic Info

Rule When Invoice Document Reference ID holds a reference, the Invoice Type Code represents a final invoice or Invoice Subtype Code represents a final invoice correction, the Invoice Document Reference Issue Date must exist within the Invoice Document Reference Group.
Context /ubl:Invoice/cac:BillingReference/cac:InvoiceDocumentReference
Pattern vrbl-invoice-pl-b2b-3p0
Severity fatal

Used Template: Exists

Parameter Value
probe = cbc:IssueDate

Implementation

(
	(cbc:ID = 'NA') or (/ubl:Invoice/cbc:InvoiceTypeCode = concat($VRBL-PL-Prefix, 'ROZ')) or (/ubl:Invoice/cbc:InvoiceTypeCode = '384' and /ubl:Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:InvoiceSubtypeCode = concat($VRBL-PL-Prefix, 'KOR_ROZ'))
)
or
(
	boolean(cbc:IssueDate)
)