ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 22 Item Jnl.-Post Line– ApplyItemLedgEntrySetFilters

Open ttaeufer opened this issue 7 years ago • 2 comments

Could we please have an extra parameter at publisher OnAfterApplyItemLedgEntrySetFilters in function ApplyItemLedgEntrySetFilters of Codeunit 22 Item Jnl.-Post Line?

LOCAL ApplyItemLedgEntrySetFilters(VAR ToItemLedgEntry : Record "Item Ledger Entry";FromItemLedgEntry : Record "Item Ledger Entry";ItemTrackingCode : Record "Item Tracking Code")
WITH ToItemLedgEntry DO BEGIN
  SETCURRENTKEY("Item No.",Open,"Variant Code",Positive,"Location Code","Posting Date");
  SETRANGE("Item No.",FromItemLedgEntry."Item No.");
  SETRANGE(Open,TRUE);
…

// >>>>>>>>
// OnAfterApplyItemLedgEntrySetFilters(ToItemLedgEntry,FromItemLedgEntry);

OnAfterApplyItemLedgEntrySetFilters(ToItemLedgEntry,FromItemLedgEntry, ItemJnlLine);

// <<<<<<<<

ttaeufer avatar Apr 04 '19 14:04 ttaeufer

The ToItemLedgEntry record should have all of the field values from ItemJnlLine...I'm curious why you'd need this?

RHansenEpimatic avatar Apr 06 '19 15:04 RHansenEpimatic

Hello RHansenEpimatic, that was a mistake, I have the request closed

ttaeufer avatar Apr 09 '19 13:04 ttaeufer