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

Basic Info

Rule The Invoice Document Reference ID 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:ID)
)