VRBL-INV-SA-1p2-62

Basic Info

Rule If the Simplified Invoice Indicator equals 'true' and the Summary Invoice Indicator equals 'true', then the Latest Delivery Date and the Actual Delivery Date must be present.
Context /ubl:Invoice/cac:Delivery
Pattern vrbl-invoice-sa-1p2
Severity fatal

Implementation

not(
	$SA-SimplifiedInvoiceIndicator = 'true'
	and 
	$SA-SummaryInvoiceIndicator = 'true'
)
or 
(
	count(cbc:LatestDeliveryDate) > 0 
	and 
	count(cbc:ActualDeliveryDate) > 0 
)