Skip to content

Codeunit WSB_TOMTransOrdReportMgt

Provides helper functions for formatting and retrieving transport order reporting data.

Properties

Name Value
Access Public
ID 11250211

Methods

wgFncFillTrackingSpecBufferFieldsFromReservEntry

Add expiration date from tracking specification to dataset TrackingSpec in TransportOrder reports

Parameters

Type Name Description
Record "Tracking Specification" temporary vRecTempTrackingSpecification Temporary record from report
Record "Reservation Entry" pRecReservationEntry Reservation Entry from Tracking Specification

wgFncGetCountryName

Gets the name of the country or region for the provided country code.

Parameters

Type Name Description
Code[10] pCountryCode The country/region code to look up.

Returns

Type Description
Text The country/region name, or an empty string if no match is found.

wgFncGetTransOrdDriver

Gets the driver associated with the provided transport order header.

Parameters

Type Name Description
Record "WSB_TOMTransOrdHeader" pRecTransOrdHeader The transport order header containing the transporter and driver codes.
Record "WSB_TOMTransOrdDriver" vRecTransOrdDriver The driver record, or an empty record if no matching driver is found.

wgFncTransOrdHeaderFormatAddrLoadUnloadAddr

Formats a transport order line's load or unload name and address into the standard address array.

Parameters

Type Name Description
Text[100] vAddrArray Array that receives the formatted load or unload name and address.
Record "WSB_TOMTransOrdLine" vRecTransportOrderLine Transport order line containing the load or unload name and address.

wgFncTransOrdHeaderFormatAddrTransporter

Formats a transport order header's transporter name and address into the standard address array.

Parameters

Type Name Description
Text[100] vAddrArray Array that receives the formatted transporter name and address.
Record "WSB_TOMTransOrdHeader" vRecTransportOrderHeader Transport order header containing the transporter name and address.

wlEvpOnBeforeTransOrdHeaderFormatAddrLoadUnloadAddr

Raised before the transport order header transporter address is formatted.

Parameters

Type Name Description
Text[100] vAddrArray Array that will hold the formatted name and address.
Record "WSB_TOMTransOrdLine" vRecTransportOrderLine Source transport order line record.
Boolean vHandled Indicates whether the event subscriber handled the formatting.

wlEvpOnBeforeTransOrdHeaderFormatAddrTransporter

Raised before the transport order header transporter address is formatted.

Parameters

Type Name Description
Text[100] vAddrArray Array that will hold the formatted name and address.
Record "WSB_TOMTransOrdHeader" vRecTransportOrderHeader Source transport order header record.
Boolean vHandled Indicates whether the event subscriber handled the formatting.