VRBL-INV-MX-1p0-96

Basic Info

Rule For a Credit Note or Debit Note, the Invoice Document Reference UUID must exist within the Invoice Document Reference.
Context /ubl:Invoice/cac:BillingReference/cac:InvoiceDocumentReference
Pattern vrbl-invoice-mx-1p0
Severity fatal

Used Template: Exists

Parameter Value
probe = cbc:UUID

Implementation

(
	not(../../cbc:InvoiceTypeCode = '381' or ../../cbc:InvoiceTypeCode = '383' or ../../cbc:InvoiceTypeCode = concat($VRBL-MX-Prefix,'E'))
)
or
(
	boolean(cbc:UUID)
)