Use this event to
...
[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;
...
Version History
Version | Changes |
---|---|
MOB5.4546 | Introduced |