VRBL-INV-AE-1p0-10

Basic Info

Rule An Invoice Line Tax Group with Invoice Line Tax Scheme IDthat contains Invoice Line Tax ID = 'AE', shall contain the Invoice Line Tax Percent greater or equal to 0.
Context /ubl:Invoice/cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory
Pattern vrbl-invoice-AE-1p0
Severity fatal

Implementation

not(
(cac:TaxScheme/cbc:ID = 'VAT') and (cbc:ID = 'AE')
)
or
(
number(cbc:Percent) >= 0
)