VRBL-INV-HR-CIUS-1p0-92

Basic Info

Rule When the Tax Category Code represents zero rated tax, the Tax Exemption Reason Code and the Tax Exemption Reason must not be provided within Tax Breakdown
Context /ubl:Invoice/cac:TaxTotal[cbc:TaxAmount/@currencyID = ../cbc:DocumentCurrencyCode]/cac:TaxSubtotal
Pattern vrbl-invoice-hr-cius-1p0
Severity fatal

Implementation

not(cac:TaxCategory/cbc:ID = concat($VRBL-HR-Prefix, 'HR:Z'))
or
(
	not(boolean(cac:TaxCategory/cbc:TaxExemptionReasonCode))
	and
	not(boolean(cac:TaxCategory/cbc:TaxExemptionReason))	
)