Use this event to
Excerpt |
---|
Code to be executed prior to posting via standard posting routinesroutine for Invt. Picks |
Description
The event can be used to call functions on the standard posting codeunit before run. For Instance, activate printing document on posting or change filtering on lines before posting.
...
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Pick", 'OnPostPickOrder_OnBeforeRunWhseActivityPost', '', true, true)]
procedure OnPostPickOrder_OnBeforeRunWhseActivityPost(var _WhseActLinesToPost: Record "Warehouse Activity Line"; var _WhseActPost: Codeunit "Whse.-Activity-Post")
begin
end;
See also:
How-to: Subscribing to standard events
Example
// [Example]: Print Document on Posting
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Pick", 'OnPostPickOrder_OnBeforeRunWhseActivityPost', '', true, true)]
procedure OnPostPickOrder_OnBeforeRunWhseActivityPost(var _WhseActLinesToPost: Record "Warehouse Activity Line"; var _WhseActPost: Codeunit "Whse.-Activity-Post")
begin
_WhseActPost.PrintDocument(true);
end;
Version History
Version | Changes |
---|---|
MOB5.13 | Introduced |
...