VRBL-INV-TW-TX-B2C-1p0-6

Basic Info

Rule The Invoice Document Reference UUID must exist for Credit Memos.
Context /ubl:Invoice/cac:BillingReference/cac:InvoiceDocumentReference
Pattern vrbl-invoice-tw-tx-b2c-1p0
Severity fatal

Implementation

(
	not(/ubl:Invoice/cbc:InvoiceTypeCode = '381')
)
or
(
	boolean(cbc:UUID)
)