R28357 TransportationOrder - Line Cargo Type

Code R28357
Entity Logistics.Transportation.TransportationOrders Entity
Name LineCargoType
Attribute CargoType
Layer Back-End
Events Planning
Modify NO
Action For every line:

If "TransportationOrder.TransportationVehicle != NULL", then validate that "CargoType == TransportationOrder.TransportationVehicle.CargoType"
Description If in the document header of the Transportation Order is specified a Transportation Vehicle, then the current validation ensures that this Vehicle supports the Cargo Type/s indicated in the Transportation Order Lines.
Message Line number '[LineNo]' contains a cargo type '[CargoType]' that is different from the cargo type set in the transportation vehicle's definition.

Please select a transportation vehicle that supports the current transportation cargo type or select another cargo type.

Sort Messages By Attribute: LineNo
Introduced In Version 2018
Revocable NO

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.