Use this event to
Excerpt |
---|
Filter Transfer Lines to be displayed in OrderLines-list as Order Lines at the mobile device. |
Description
...
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS ReceiveMOB WMS Pick", 'OnGetReceiveOrderLinesOnGetPickOrderLines_OnSetFilterTransferLine', '', true, true)]
procedure OnGetReceiveOrderLines OnGetPickOrderLines_OnSetFilterTransferLine(var _TransferLine: Record "Transfer Line")
begin
end;
Example
// [Example]: Only show lines with shipment date today or earlier
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS ReceiveMOB WMS Pick", 'OnGetReceiveOrderLinesOnGetPickOrderLines_OnSetFilterTransferLine', '', true, true)]
procedure MyOnGetReceiveOrderLines MyOnGetPickOrderLines_OnSetFilterTransferLine(var _TransferLine: Record "Transfer Line")
begin
// [Scenario] Apply addition filter to excluding order lines (and orders) with expected receipt date different than today
_TransferLine.SetFilter("Receipt DateShipment Date", '=..%1', WorkDate Today());
end;
Filter by label (Content by label) showLabels false showSpace false sort title title More examples excerptType simple cql label = "bc" and label = "orderlines" and label = "example" and label = "onsetfilter"
Version History
Version | Changes |
---|---|
MOB5.10 | Introduced as OnGetReceiveOrderLines_OnSetFilterTransferOrderLine |
MOB5.11 | Renamed to OnGetReceiveOrderLines_OnSetFilterTransferLine |