Excerpt |
---|
Code to be executed prior to posting via standard posting routines. When migrating code from older MOB versions, this event is the most direct 1:1 comparison to existing in-line customizations. |
...
Template:
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Receive", 'OnPostReceiveOrder_OnBeforePostAnyOrder', '', true, true)]
procedure OnPostReceiveOrder_OnBeforePostAnyOrder(var _OrderValues: Record "MOB Common Element"; var _RecRef: RecordRef)
begin
end;
Description:
The event is mostly used to validate collected "header" level steps (added from OnGetReceiveOrderLines_OnAddStepsToAnyHeader) and to write collected header level steps values to fields in the database that subsequently can be accessed from standard posting function events.
...
OnPostReceiveOrder_OnBeforePostWarehouseReceipt
OnPostReceiveOrder_OnBeforePostPurchaseOrder
OnPostReceiveOrder_OnBeforePostTransferOrder
OnPostReceiveOrder_OnBeforePostSalesReturnOrder
See also: OnGetReceiveOrderLines_OnAddStepsToAnyHeader
OnPostReceiveOrder_OnHandleRegistrationForAnyLine
How-to: Subscribe to standard events in BC base app
...