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

Basic Info

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

Implementation

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