VRBL-INV-AE-1p0-28

Basic Info

Rule In every Document Level Charges where the Document Level Charge Tax Category Code is "S", the Document Level Charge Tax Rate must greater than zero.
Context /ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true']
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