VRBL-INV-AU-1p0-22

Basic Info

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

Implementation

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