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