VRBL-INV-AE-1p0-40

Basic Info

Rule For Free Trade Zone Free Trade Zone Indicator , the Additional Party Tax Company ID with @code = 'VRBL:AE:Beneficiary' MUST be provided.
Context /ubl:Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension
Pattern vrbl-invoice-AE-1p0
Severity fatal

Implementation

not(vrbl:FreeTradeZoneIndicator = 'true')
or
boolean(vrbl:AdditionalParty[@code = 'VRBL:AE:Beneficiary']/cac:Party/cac:PartyTaxScheme/cbc:CompanyID)