VRBL-INV-EN16931-M-123

Basic Info

Rule If Invoice Period Group is used, the Invoice Start Date or the Invoice 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)))