Rules
Basic Info
|
Rule
|
The value of the Invoice Period Duration Measure Unit Code must be contained in Invoice Period Duration Measure Unit Code used for Frequency of Billing in UAE (subset of UNCL 2151) [VRBL-CL-AE-FrequencyOfBilling-UNCL2151]. |
|
Context
|
/ubl:Invoice/cac:InvoicePeriod/cbc:DurationMeasure
|
|
Pattern
|
vrbl-invoice-AE-1p0 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
@unitCode
|
| codeList |
= |
$VRBL-CL-AE-FrequencyOfBilling-UNCL2151
|
| showValues |
= |
false
|
Implementation
not(boolean(@unitCode))
or
(
(
not(
contains(
normalize-space(@unitCode),
substring($VRBL-CL-AE-FrequencyOfBilling-UNCL2151, 1, 1)
)
)
and
contains(
$VRBL-CL-AE-FrequencyOfBilling-UNCL2151,
concat(
substring($VRBL-CL-AE-FrequencyOfBilling-UNCL2151, 1, 1),
normalize-space(@unitCode),
substring($VRBL-CL-AE-FrequencyOfBilling-UNCL2151, 1, 1)
)
)
)
)