Use this event to
...
- Create transport orders (or similar) for the Whse. Shipment in the 3rd party Shipping App (App
- ... or use OnPostPackingOnBeforePostWarehouseShipment event if you want the Transport Order to be created prior to posting)
- Book transport orders (or similar) in the 3rd party Shipping App
- Print related documents from the 3rd party Shipping App.
...
/// <remarks>
/// Redirected from standard event OnAfterPostWhseShipment to new local event for more accessible "interface" (all neccessary events in Codeunit MOS Pack API)
/// </remarks>
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOS Pack API", 'OnPostPackingOnAfterPostWarehouseShipment', '', false, false)]
local procedure OnPostPackingOnAfterPostWarehouseShipment(var WarehouseShipmentHeader: Record "Warehouse Shipment Header")
begin
end;
Example
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOS Pack API", 'OnPostPackingOnAfterPostWarehouseShipment', '', false, false)]
local procedure OnPostPackingOnAfterPostWarehouseShipment(var WarehouseShipmentHeader: Record "Warehouse Shipment Header")
begin
if not WarehouseShipmentHeader.Find('=') then // No longer exists = fully posted
BookAndPrintWhseShipment(WarehouseShipmentHeader);
end;
Version History
Version | Changes |
---|---|
MOS1.0.0 | Introduced |
...