ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

Codeunit 6500 "Item Tracking Management" - OnBeforeInsertNewLotNoInfo

Open SchoKa opened this issue 6 years ago • 2 comments

Hello Al Team,

in Codeunit 6500 "Item Tracking Management": please provide a "Lot No. Information" record instead of "NewLotNo" as parameter of function "CopyLotNoInformation" and a new publisher function:

procedure CopyLotNoInformation(LotNoInfo: Record "Lot No. Information"; **FromLotNoInfo: Record "Lot No. Information"**)
[...]
        end else begin
            NewLotNoInfo := LotNoInfo;
            NewLotNoInfo."Lot No." := FromLotNoInfo."Lot No.";

            // >> NEW
            OnBeforeInsertNewLotNoInfo(NewLotNoInfo,FromLotNoInfo);
            // << NEW
            NewLotNoInfo.Insert();
        end;
[...]

[IntegrationEvent(false, false)] local procedure OnBeforeInsertNewLotNoInfo(var NewLotNoInfo: Record "Lot No. Information"; FromLotNoInfo: record "Lot No. Information")

SchoKa avatar Mar 20 '20 10:03 SchoKa

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. We will update this issue with information about availability.

bc-ghost avatar Mar 27 '20 06:03 bc-ghost

The parameter is still not changed to a Lot No. Information record in the current BC preview (17.0.16010.0.).

IngoStender avatar Sep 01 '20 14:09 IngoStender