VRBL-INV-AE-1p0-85

Basic Info

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

Implementation

not(/ubl:Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:SupplyThroughEcommerceIndicator)
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
)