Use this event to
Add filter conditions for Item Ledger Entry that cannot be solved by OnSetFilter- event (Location Not using Bins).
...
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS History", 'OnLookupOnHistory_OnIncludeItemLedgerEntry', '', true, true)]
localprocedure OnLookupOnHistory_OnIncludeItemLedgerEntry(_ItemLedgerEntry: Record"Item Ledger Entry"; var _IncludeInLookup: Boolean)
begin
end;
Example
// [Example]: Exclude from response if Quantity is more than 1.
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS History", 'OnLookupOnHistory_OnIncludeItemLedgerEntry', '', true, true)]
localprocedure MyOnLookupOnHistory_OnIncludeItemLedgerEntry(_ItemLedgerEntry: Record"Item Ledger Entry"; var _IncludeInLookup: Boolean)
begin
if _ItemLedgerEntry.Quantity >1then
_IncludeInLookup:=false;
end;
Filter by label (Content by label) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Version History
Version | Changes |
---|---|
MOB5.45 | Introduced |
...