VRBL-DPA-RS-1p0-15

Basic Info

Rule When the Dispatch Line Item Additional Item Property Name indicates an excisable good (listed in the code list [VRBL-CL-RS-ExcisableGoods]), the Shipment Dispatch Estimated Dispatch Date must be provided.
Context /ubl:DespatchAdvice/cac:DespatchLine/cac:Item/cac:AdditionalItemProperty
Pattern vrbl-despatchadvice-rs-1p0
Severity fatal

Implementation

not(cbc:Name)
or
not(
	contains($VRBL-CL-RS-ExcisableGoods, concat(' ', substring-after(normalize-space(cbc:Name), $VRBL-RS-Prefix), ' '))
)
or
boolean(../../../cac:Shipment/cac:Delivery/cac:Despatch/cbc:EstimatedDespatchDate)