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

Basic Info

Rule In every Document Level Charges where the Document Level Charge Tax Category Code is "O", the Document Level Charge Tax Rate must not exist.
Context /ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true']
Pattern vrbl-invoice-peppol-pint-au-nz
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))