Rules
VRBL-INV-IT-1p2-180
Basic Info
| Rule | For Social Security Charges, the Document Level Charge Tax Exemption Reason Code is restricted by a code list. |
| Context |
/ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true']/cac:TaxCategory/cbc:TaxExemptionReasonCode
|
| Pattern | vrbl-invoice-it-1p2 |
| Severity | fatal |
Implementation
not(
../../cbc:AllowanceChargeReasonCode = concat($VRBL-IT-Prefix, 'ZZZ')
)
or
(
contains($VRBL-IT-table-TaxExemptionReasonCode, concat(' ', substring-after(normalize-space(.), $VRBL-IT-Prefix),'#'))
)