VRBL-INV-AU-1p0-18

Basic Info

Rule In every Charge Group where the Charge Tax ID is "O", the Charge Tax Percent must not exist.
Context /ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true']
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))