ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event request] report 790 "Calculate Inventory" DINOnUpdateBufferBeforeModify / Insert

Open leegeurts opened this issue 5 years ago • 1 comments

Dear ALAppExtensions Team,

We would like to request the following event publishers in report 790 function OnUpdateBufferBeforeModify and OnUpdateBufferBeforeInsert.

local procedure UpdateBuffer(BinCode: Code[20]; NewQuantity: Decimal) var DimEntryNo: Integer; begin with QuantityOnHandBuffer do begin if not HasNewQuantity(NewQuantity) then exit; if BinCode = '' then begin if ColumnDim <> '' then TempDimBufIn.SetRange("Entry No.", "Item Ledger Entry"."Dimension Set ID"); DimEntryNo := DimBufMgt.FindDimensions(TempDimBufIn); if DimEntryNo = 0 then DimEntryNo := DimBufMgt.InsertDimensions(TempDimBufIn); end; if RetrieveBuffer(BinCode, DimEntryNo) then begin Quantity := Quantity + NewQuantity; // DINNL << OnUpdateBufferBeforeModify(QuantityOnHandBuffer); // DINNL >> Modify; end else begin Quantity := NewQuantity; // DINNL << OnUpdateBufferBeforeInsert(QuantityOnHandBuffer); // DINNL >> Insert; end; end; end;

[IntegrationEvent(false, false)]
local procedure OnUpdateBufferBeforeInsert(var InventoryBuffer: Record "Inventory Buffer")
begin
end;

[IntegrationEvent(false, false)]
local procedure OnUpdateBufferBeforeModify(var InventoryBuffer: Record "Inventory Buffer")
begin
end;

leegeurts avatar May 28 '21 12:05 leegeurts

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

JesperSchulz avatar Jun 02 '21 14:06 JesperSchulz