VRBL-INV-IT-1p2-172
Basic Info
|
Rule
|
For Social Security Charges, the Charge Tax Exemption Reason Code must exist, when the Charge Tax ID indicates a Tax Exemption. |
|
Context
|
/ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true']
|
|
Pattern
|
vrbl-invoice-it-1p2 |
|
Severity
|
fatal |
Implementation
not(
cbc:AllowanceChargeReasonCode = concat($VRBL-IT-Prefix, 'ZZZ')
)
or
(
not(contains($VRBL-IT-table-TaxExemptionReasonCode, concat('#', normalize-space(cac:TaxCategory/cbc:ID), ' ')))
or
boolean(cac:TaxCategory/cbc:TaxExemptionReasonCode)
)