Use this event to
...
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS History", 'OnLookupOnHistory_OnSetFilterItemLedgerEntry', '', true, true)]
localprocedure OnLookupOnHistory_OnSetFilterItemLedgerEntry(var _RequestValues: Record"MOB NS Request Element"; var _ItemLedgerEntry: Record"Item Ledger Entry")
begin
end;
...
// [Example 01] Include only entries that were posted today.
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS History", 'OnLookupOnHistory_OnSetFilterItemLedgerEntry', '', true, true)]
localprocedure MyOnLookupOnHistory_OnSetFilterItemLedgerEntry(var _RequestValues: Record"MOB NS Request Element"; var _ItemLedgerEntry: Record"Item Ledger Entry")
var
MobSessionData: Codeunit"MOB SessionData";
begin
_ItemLedgerEntry.SetRange(_ItemLedgerEntry."Posting Date", Today);
end;
...
Version History
Version | Changes |
---|---|
MOB5.4546 | Introduced |