VRBL-INV-EN16931-M-158

Basic Info

Rule The Tax Subtotal Tax Amount in a Tax Sub Total where the Tax Subtotal Category ID equals "Exempt from VAT" must equal 0 (zero).
Context /ubl:Invoice/cac:TaxTotal[cbc:TaxAmount/@currencyID = ../cbc:DocumentCurrencyCode]/cac:TaxSubtotal/cac:TaxCategory
Pattern vrbl-invoice-en16931-ubl-model
Severity fatal

Implementation

not(
	cbc:ID = 'E'
	and
	cac:TaxScheme/cbc:ID = 'VAT'
)
or
number(../cbc:TaxAmount) = 0