Use this event to
...
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Pick", 'OnGetPickOrders_OnSetFilterSalesOrder', '', true, true)]
procedure OnGetPickOrders_OnSetFilterSalesOrder(_HeaderFilter: Record "MOB NS Request Element"; var _SalesHeader: Record "Sales Header"; var _SalesLine: Record "Sales Line"; var _IsHandled: Boolean)
begin
end;
Example
// [Example]: Handle new custom filter 'CustomerNo' - Only show Picks for specific customer
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Pick", 'OnGetPickOrders_OnSetFilterSalesOrder', '', true, true)]
procedure MyOnGetPickOrders_OnSetFilterSalesOrder(_HeaderFilter: Record "MOB NS Request Element"; var _SalesHeader: Record "Sales Header"; var _SalesLine: Record "Sales Line"; var _IsHandled: Boolean)
begin
if _HeaderFilter.Name = 'CustomerNo' then begin
_SalesHeader.SetRange("Sell-to Customer No.", _HeaderFilter."Value");
_IsHandled := true;
end;
end;
Filter by label (Content by label) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...