VRBL-INV-AU-1p0-23

Basic Info

Rule In every Allowance Group where the Allowance Tax ID is "O", the Allowance Tax Percent must not exist.
Context /ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'false']
Pattern vrbl-invoice-au-1p0
Severity fatal

Implementation

not(boolean(cac:TaxCategory[cbc:ID='O'][cac:TaxScheme/cbc:ID='GST']))
or
not(boolean(cac:TaxCategory[cbc:ID='O'][cac:TaxScheme/cbc:ID='GST']/cbc:Percent))