ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] OnBeforeWhseActivLineInsert in codeunit 'Create Pick'
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
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.