Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Use this event to

Excerpt

Book and Print external "Transport Orders" (or similar) in 3rd party Shipping App

...

  • Create transport orders (or similar) for the Whse. Shipment  Shipment in the 3rd party Shipping App   (or use OnPostPackingOnBeforePostWarehouseShipment OnPostPackingOnAfterPostWarehouseShipment event if you want the Transport Order to be created after prior to posting).
  • Book transport orders (or similar) for the Whse. Shipment and 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::CodeunitCodeunit::"MOS Pack API", 'OnPostPackingOnAfterPostWarehouseShipment''', false, false)]
    local procedure OnPostPackingOnAfterPostWarehouseShipment(var WarehouseShipmentHeader: Record "Warehouse Shipment Header")
    begin
    end;


Example

    [EventSubscriber(ObjectType::CodeunitCodeunit::"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

VersionChanges
MOS1.0.0Introduced

...