VRBL-INV-MY-1p0-131
Basic Info
|
Rule
|
The value of the Allowance Tax Scheme ID must be contained in Tax Scheme [VRBL-CL-MY-TaxSchemeID]. |
|
Context
|
/ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'false']/cac:TaxCategory/cac:TaxScheme/cbc:ID
|
|
Pattern
|
vrbl-invoice-my-1p0 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
.
|
| codeList |
= |
$VRBL-CL-MY-TaxSchemeID
|
Implementation
not(boolean(.))
or
(
(
not(
contains(
normalize-space(.),
substring($VRBL-CL-MY-TaxSchemeID, 1, 1)
)
)
and
contains(
$VRBL-CL-MY-TaxSchemeID,
concat(
substring($VRBL-CL-MY-TaxSchemeID, 1, 1),
normalize-space(.),
substring($VRBL-CL-MY-TaxSchemeID, 1, 1)
)
)
)
)