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

Basic Info

Rule The Invoiced Item Tax Rate must be zero, when the Invoiced Item Tax Category Code equal "G".
Context /ubl:Invoice/cac:InvoiceLine
Pattern vrbl-invoice-peppol-pint-au-nz
Severity fatal

Implementation

not(boolean(cac:Item/cac:ClassifiedTaxCategory[cac:TaxScheme/cbc:ID = 'GST']/cbc:ID = 'G'))
or
number(cac:Item/cac:ClassifiedTaxCategory[cac:TaxScheme/cbc:ID = 'GST']/cbc:Percent) = 0