VRBL-INV-AE-1p0-101

Basic Info

Rule When Invoice Period Duration Measure Unit Code is 'ZZZ', the Document Note must exist within the Invoice.
Context /ubl:Invoice
Pattern vrbl-invoice-AE-1p0
Severity fatal

Used Template: Exists

Parameter Value
probe = cbc:Note

Implementation

(
	not(/ubl:Invoice/cac:InvoicePeriod/cbc:DurationMeasure/@unitCode = 'ZZZ')
)
or
(
	boolean(cbc:Note)
)