Rules
Basic Info
|
Rule
|
When Document Level Allowance Tax Category Code is 'E', the Document Level Allowance Tax Exemption Reason Code must exist within the Document Level Allowances. |
|
Context
|
/ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'false']
|
|
Pattern
|
vrbl-invoice-AE-1p0 |
|
Severity
|
fatal |
Used Template: Exists
| Parameter |
|
Value |
| probe |
= |
cac:TaxCategory/cbc:TaxExemptionReasonCode
|
Implementation
(
not(cac:TaxCategory/cbc:ID = 'E')
)
or
(
boolean(cac:TaxCategory/cbc:TaxExemptionReasonCode)
)