VRBL-INV-AE-1p0-27

Basic Info

Rule In every Allowance Group where the Allowance Tax ID is "S", the Allowance Tax Percent must greater than zero.
Context /ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'false']
Pattern vrbl-invoice-AE-1p0
Severity fatal

Implementation

not(boolean(cac:TaxCategory[cbc:ID='S'][cac:TaxScheme/cbc:ID='VAT']))
or
number(cac:TaxCategory[cbc:ID='S'][cac:TaxScheme/cbc:ID='VAT']/cbc:Percent) > 0