VRBL-INV-HR-CIUS-1p0-92
Basic Info
| Rule | When the Invoice Tax Subtotal Tax ID represents zero rated tax, the Invoice Tax Subtotal Category Exemption Reason Code and the Invoice Tax Subtotal Category Exemption Reason must not be provided within Invoice Tax Subtotal Group |
| 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))
)