VRBL-INV-PEPPOL-PINT-129

Basic Info

Rule If the Invoice Period Group is used, the Invoice Start Date or Invoice End Date must be filled, or both.
Context /ubl:Invoice/cac:InvoicePeriod
Pattern vrbl-invoice-peppol-pint
Severity fatal

Implementation

(
	boolean(cbc:EndDate)
	or
	boolean(cbc:StartDate)
)
or
(
	boolean(cbc:DescriptionCode)
	and
	not(boolean(cbc:StartDate))
	and
	not(boolean(cbc:EndDate))
)