VRBL-INV-AE-1p0-32

Basic Info

Rule The Invoice Line Tax Percent must be 0, when the Invoice Line Tax ID equal "Z".
Context /ubl:Invoice/cac:InvoiceLine
Pattern vrbl-invoice-AE-1p0
Severity fatal

Implementation

not(cac:Item/cac:ClassifiedTaxCategory[cac:TaxScheme/cbc:ID = 'VAT']/cbc:ID = 'Z')
or
number(cac:Item/cac:ClassifiedTaxCategory[cac:TaxScheme/cbc:ID = 'VAT' and cbc:ID = 'Z']/cbc:Percent) = 0