Order Packaging Events

Order Packaging Events

You are here:

You can customize Order Packaging loading with four different events.

You can use the first event to trigger to override the entire order loading process. You can use this event to ignore the Setup, limit order loading to a certain count, manipulate details, and more. See the signature in parentheses below:

“/// <summary>

/// Triggers when orders are loaded for the order packaging page.

/// Can be used to add documents to the buffer as well as overriding Dynamic Ship handling entirely.

/// </summary>

/// <param name=”orderBuffer”>The buffer list of orders.</param>

/// <param name=”isHandled”>Set to true to prevent base Dynamic Ship from loading documents.</param>

local procedure OnBeforeGetPackageOrders(var orderBuffer: Record “DSHIP Package Order Buffer”; var isHandled: Boolean)”

We also have three more events for each supported order type; these events only trigger if you enable the loading of the order type. These events are useful if you require more control on order loading as you can adjust the filters for the specific order. For example, you could include only sales orders that are released, warehouse shipments that are fully picked, or transfer orders that have a specific In-Transit Code.

See the signatures in parentheses below:

Triggers before warehouse shipments are loaded into the order buffer

“/// <summary>

/// Triggers before warehouse shipments are loaded into the order buffer. Only triggers if “Load Warehouse Shipments” is Yes.

/// </summary>

/// <param name=”whseShipHeader”>The warehouse shipment header with our filters applied. Filters can be modified.</param>

/// <param name=”orderBuffer”>The order buffer to populate with warehouse shipments details. Only populate if setting isHandled.</param>

/// <param name=”isHandled”>Set to true to indicate the order buffer was populated with warehouse shipments.</param>

/// <remarks>

/// Only set isHandled if the order buffer has been populated with the desired warehouse shipments.

/// Do not set to true if only modifying the warehouse shipment param’s filter.

/// </remarks>

local procedure OnBeforeGetPackageOrdersWhseShip(var whseShipHeader: Record “Warehouse Shipment Header”; var orderBuffer: Record “DSHIP Package Order Buffer” temporary; var isHandled: Boolean)”

Triggers before sales orders are loaded into the order buffer

“/// <summary>

/// Triggers before sales orders are loaded into the order buffer. Only triggers if “Load Sales Orders” is Yes.

/// </summary>

/// <param name=”salesHeader”>The sales header with our filters applied. Filters can be modified.</param>

/// <param name=”orderBuffer”>The order buffer to populate with sales orders details. Only populate if setting isHandled to true.</param>

/// <param name=”isHandled”>Set to true to indicate the order buffer was populated with sales orders.</param>

/// <remarks>

/// Only set isHandled if the order buffer has been populated with the desired sales orders.

/// Do not set to true if only modifying the sales order param’s filter.

/// </remarks>

local procedure OnBeforeGetPackageOrdersSalesOrder(var salesHeader: Record “Sales Header”; var orderBuffer: Record “DSHIP Package Order Buffer” temporary; var isHandled: Boolean)”

Triggers before transfer orders are loaded into the order buffer

“/// <summary>

/// Triggers before transfer orders are loaded into the order buffer. Only triggers if “Load Transfer Orders” is Yes.

/// </summary>

/// <param name=”transferHeader”>The transfer header with our filters applied. Filters can be modified.</param>

/// <param name=”orderBuffer”>The order buffer to populate with transfer orders details. Only populate if setting isHandled to true.</param>

/// <param name=”isHandled”>Set to true to indicate the order buffer was populated with transfer orders.</param>

/// <remarks>

/// Only set isHandled if the order buffer has been populated with the desired transfer orders.

/// Do not set to true if only modifying the transfer order param’s filter.

/// </remarks>

local procedure OnBeforeGetPackageOrdersTransferOrder(var transferHeader: Record “Transfer Header”; var orderBuffer: Record “DSHIP Package Order Buffer” temporary; var isHandled: Boolean)”

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Need help?

Leave A Comment

Go to Top