...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Use this event to
Excerpt |
---|
Filter Sales Return Lines to be displayed in OrderLines-list at as Order Lines on the mobile device. |
Description
With this event you can perform basic record filtering of Order Lines.
If you have complex conditions, consider consider OnGetPickOrderLines_OnInclude... instead instead.
Learn about Basic vs. Complex filtering
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS ReceiveMOB WMS Pick", 'OnGetReceiveOrderLinesOnGetPickOrderLines_OnSetFilterSalesReturnLineOnSetFilterSalesLine', '', true, true)]
local procedure OnGetReceiveOrderLines OnGetPickOrderLines_OnSetFilterSalesReturnLineOnSetFilterSalesLine(var _SalesReturnLineSalesLine: Record "Sales Line")
begin
end;
Example
// [Example]: Do not show "Drop Shipment" Lines
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS ReceiveMOB WMS Pick", 'OnGetReceiveOrderLinesOnGetPickOrderLines_OnSetFilterSalesReturnLineOnSetFilterSalesLine', '', true, true)]
local procedure MyOnGetReceiveOrderLines MyOnGetPickOrderLines_OnSetFilterSalesReturnLineOnSetFilterSalesLine(var _SalesReturnLineSalesLine: Record "Sales Line")
begin
// [Scenario] Apply addition filter to excluding order lines (and orders) with posting different than today
_SalesReturnLine.SetFilter(_SalesReturnLine."Posting Date", '=%1', WorkDate()_SalesLine.SetRange("Drop Shipment", false);
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_OnSetFilterSalesReturnOrderLine |
MOB5.11 | Renamed to OnGetReceiveOrderLines_OnSetFilterSalesReturnLine |