[Event Request] Codeunit 7326 Whse. Item Tracking FEFO – SummarizeInventoryFEFO
Could we please have a publisher OnBeforeInsertEntrySummaryFEFOSummarizeInventoryFEFO in function SummarizeInventoryFEFO Codeunit 7326 Whse. Item Tracking FEFO?
LOCAL SummarizeInventoryFEFO(Location : Record Location;ItemNo : Code[20];VariantCode : Code[10];HasExpirationDate : Boolean)
WITH ItemLedgEntry DO BEGIN
RESET;
..
IF "Remaining Quantity" - ("Reserved Quantity" - CalcReservedToSource("Entry No.")) > 0 THEN
IF NOT EntrySummaryFEFOExists("Lot No.","Serial No.") THEN
// >>>>>>>>
begin
OnBeforeInsertEntrySummaryFEFO SummarizeInventoryFEFO (var TempGlobalEntrySummary);
// <<<<<<<<
InsertEntrySummaryFEFO("Lot No.","Serial No.","Expiration
Date");
// >>>>>>>>
End;
// <<<<<<<<
END;
SummarizeInventoryFEFO (new Parameter ItemLedgEntry)
We looked at the publishers again. The publisher in the function SummarizeAdjustmentBinFEFO is required, but unfortunately a parameter (ItemLedgEntry) was missing in the event request. We have two more fields that we need to write in the Entry Summary table. This is not so easy, the idea is to hang two variables on the Entry Summary table (Table Extension) and fill them with Get (InsertEntrySummaryFEFO) and Set (SummarizeAdjustmentBinFEFO) functions.
OnBeforeInsertEntrySummaryFEFOSummarizeInventoryFEFO (var TempGlobalEntrySummary, ItemLedgEntry);
SummarizeAdjustmentBinFEFO (new Parameter: WhseEntry)
As with the event request for the function SummarizeInventoryFEFO, another parameter is required for this request (WhseEntry)
OnBeforeInsertEntrySummaryFEFOSummarizeAdjustmentBinFEFO (var TempGlobalEntrySummary, WhseEntry);