VRBL-INV-AE-1p0-97

Basic Info

Rule The Delivery Location Street Name, Delivery Location City Name, and Delivery Location Country Subentity MUST be present when the Export Indicator exists.
Context /ubl:Invoice
Pattern vrbl-invoice-AE-1p0
Severity fatal

Implementation

not(/ubl:Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:ExportIndicator)
or
(
	cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:StreetName
	and cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:CityName
	and cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:CountrySubentity
)