VRBL-INV-TR-1p2-55

Basic Info

Rule If the Invoice Subtype Code is VRBL:TR:IHRACAT, either the Delivery Location Address or the Buyer Customer Party Address Group must be provided.
Context /ubl:Invoice/cac:InvoiceLine
Pattern vrbl-invoice-tr-1p2
Severity fatal

Implementation

not(/ubl:Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:InvoiceSubtypeCode = concat($VRBL-TR-Prefix, 'IHRACAT'))
or boolean(../cac:Delivery/cac:DeliveryLocation/cac:Address)
or boolean(cac:Delivery/cac:DeliveryLocation/cac:Address)
or boolean(/ubl:Invoice/cac:BuyerCustomerParty/cac:Party/cac:PostalAddress)