VRBL-INV-EN16931-M-199

Basic Info

Rule The Tax Subtotal Tax Amount where the Tax Subtotal Category ID is "Zero rated" must be 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 = 'Z'
	and
	cac:TaxScheme/cbc:ID = 'VAT'
)
or
number(../cbc:TaxAmount) = 0