VRBL-INV-PEPPOL-PINT-AUNZ-1p0-20

Basic Info

Rule In every Document Level Allowances where the Document Level Allowance Tax Category Code is "Z", the Document Level Allowance Tax Rate must be zero.
Context /ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'false']
Pattern vrbl-invoice-peppol-pint-au-nz
Severity fatal

Implementation

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