ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] OnBeforeWhseActivLineInsert in codeunit 'Create Pick'

Open Joerio opened this issue 4 years ago • 1 comments

Event OnBeforeWhseActivLineInsert is not implemented consistently in codeunit Create Pick.

In function 'local procedure CreateWhseDocLine()' it is used:

        if WhseActivLine."Qty. (Base)" <> 0 then begin
            WhseActivLine."Line No." := LineNo;
            ProcessDoNotFillQtytoHandle(WhseActivLine);
            OnBeforeWhseActivLineInsert(WhseActivLine, WhseActivHeader);
            WhseActivLine.Insert();
            OnAfterWhseActivLineInsert(WhseActivLine);
        end;

However, in function 'local procedure CreateWhseDocPlaceLine' it is missing:

                if WhseActivLine.Quantity > 0 then begin
                    TempWhseActivLine3 := WhseActivLine;
                    ValidateWhseActivLineQtyFIeldsFromCreateWhseDocPlaceLine(WhseActivLine, TempWhseActivLine3);

                    ProcessDoNotFillQtytoHandle(WhseActivLine);
                    WhseActivLine.Insert();
                    OnAfterWhseActivLineInsert(WhseActivLine);
                end;

Please add the event OnBeforeWhseActivLineInsert also in the function CreateWhseDocPlaceLine

Joerio avatar Aug 24 '22 08:08 Joerio

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.

Build ID: 47995.

JesperSchulz avatar Oct 20 '22 12:10 JesperSchulz