Rules
Basic Info
|
Rule
|
The value of the Tax Accounting Currency must be contained in Philippines Currency Code List (PHP) [VRBL-CL-PH-Currency]. |
|
Context
|
/ubl:Invoice/cbc:TaxCurrencyCode
|
|
Pattern
|
vrbl-invoice-ph-1p0 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
.
|
| codeList |
= |
$VRBL-CL-PH-Currency
|
Implementation
not(boolean(.))
or
(
(
not(
contains(
normalize-space(.),
substring($VRBL-CL-PH-Currency, 1, 1)
)
)
and
contains(
$VRBL-CL-PH-Currency,
concat(
substring($VRBL-CL-PH-Currency, 1, 1),
normalize-space(.),
substring($VRBL-CL-PH-Currency, 1, 1)
)
)
)
)