VRBL-INV-AE-1p0-50

Basic Info

Rule The Invoice Line Tax Percent must be greater than 0, when the Invoice Line Tax ID equal "N".
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 = 'N')
or
number(cac:Item/cac:ClassifiedTaxCategory[cac:TaxScheme/cbc:ID = 'VAT' and cbc:ID = 'N']/cbc:Percent) > 0