Rules
Basic Info
|
Rule
|
The value of the Dispatch Line Item Dimension Measure Unit Code must be contained in Dimension unitCode [VRBL-CL-MX-Dimension-unitCode]. Allowed values: CMT. |
|
Context
|
/ubl:DespatchAdvice/cac:DespatchLine/cac:Item/cac:Dimension/cbc:Measure
|
|
Pattern
|
vrbl-despatchadvice-mx-1p0 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
@unitCode
|
| codeList |
= |
$VRBL-CL-MX-Dimension-unitCode
|
| showValues |
= |
true
|
Implementation
not(boolean(@unitCode))
or
(
(
not(
contains(
normalize-space(@unitCode),
substring($VRBL-CL-MX-Dimension-unitCode, 1, 1)
)
)
and
contains(
$VRBL-CL-MX-Dimension-unitCode,
concat(
substring($VRBL-CL-MX-Dimension-unitCode, 1, 1),
normalize-space(@unitCode),
substring($VRBL-CL-MX-Dimension-unitCode, 1, 1)
)
)
)
)