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

Basic Info

Rule The Document Level Charge Tax Category Code must exist, when the Document Level Allowance Tax Scheme Code equal "GST".
Context /ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true']/cac:TaxCategory
Pattern vrbl-invoice-peppol-pint-au-nz
Severity fatal

Implementation

not(cac:TaxScheme/cbc:ID='GST')
or
boolean(cbc:ID)