VRBL-INV-EN16931-M-123

Basic Info

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

Implementation

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