VRBL-INV-IN-1p0-28

Basic Info

Rule The Delivery Tax Company ID must exist within Delivery Party Tax Scheme Group where Delivery Tax Scheme ID is "GST".
Context /ubl:Invoice/cac:Delivery/cac:DeliveryParty/cac:PartyTaxScheme
Pattern vrbl-invoice-in-1p0
Severity fatal

Implementation

not(cac:TaxScheme/cbc:ID = 'GST')
or
boolean(cbc:CompanyID)