Rules
Basic Info
|
Rule
|
The value of the Allowance Charge Tax ID must be contained in Tax Category ID [VRBL-CL-PT-TaxCategory-ID]. Allowed values: AA, AE, E, G, IC, INT, ISE, NA, NOR, O, OUT, RED, S, Z. |
|
Context
|
/ubl:Invoice/cac:AllowanceCharge/cac:TaxCategory/cbc:ID
|
|
Pattern
|
vrbl-invoice-pt-2p1 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
.
|
| codeList |
= |
$VRBL-CL-PT-TaxCategory-ID
|
| showValues |
= |
true
|
Implementation
not(boolean(.))
or
(
(
not(
contains(
normalize-space(.),
substring($VRBL-CL-PT-TaxCategory-ID, 1, 1)
)
)
and
contains(
$VRBL-CL-PT-TaxCategory-ID,
concat(
substring($VRBL-CL-PT-TaxCategory-ID, 1, 1),
normalize-space(.),
substring($VRBL-CL-PT-TaxCategory-ID, 1, 1)
)
)
)
)