VRBL-INV-EN16931-M-171

Basic Info

Rule In a Allowance Group where the Allowance Tax ID is "Intra-community supply", the Allowance Tax Percent must be 0 (zero).
Context /ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'false']/cac:TaxCategory
Pattern vrbl-invoice-en16931-ubl-model
Severity fatal

Implementation

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