Rules
Basic Info
|
Rule
|
When the Shipment Transport Means Rail Transport Train ID is provided, the Shipment Transport Mode Code must exist within the Waybill. |
|
Context
|
/ubl:Waybill
|
|
Pattern
|
vrbl-waybill-in-1p0 |
|
Severity
|
fatal |
Used Template: Exists
| Parameter |
|
Value |
| probe |
= |
cac:Shipment/cac:ShipmentStage/cbc:TransportModeCode
|
Implementation
(
not(boolean(cac:Shipment/cac:ShipmentStage/cac:TransportMeans/cac:RailTransport/cbc:TrainID))
)
or
(
boolean(cac:Shipment/cac:ShipmentStage/cbc:TransportModeCode)
)