ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[EventRequest]: TransferOrder-Post Shipment: OnBeforeCopyTransAndTransferTracking

Open AndyF2k25 opened this issue 5 years ago • 1 comments

Hi all,

we would like a Handled Parameter in the above named codeunit in here

            TransLine.SetFilter(Quantity, '<>0');
            TransLine.SetFilter("Qty. to Ship", '<>0');
            if TransLine.Find('-') then begin
                NextLineNo := AssignLineNo(TransLine."Document No.");
                repeat
**OnBeforeCopyTransAndTransferTracking(TransLine,TransHeader)
**If not Handled then begin**
                    CopyTransLine(TransLine2, TransLine, NextLineNo, TransHeader);
                    TransferTracking(TransLine, TransLine2, TransLine."Qty. to Ship (Base)");
**end;**
                    TransLine.Validate("Quantity Shipped", TransLine."Quantity Shipped" + TransLine."Qty. to Ship");

                    OnBeforeUpdateWithWarehouseShipReceive(TransLine);
                    TransLine.UpdateWithWarehouseShipReceive;
                    TransLine.Modify();
                    OnAfterTransLineModify(TransLine);
                until TransLine.Next() = 0;
            end;

OnBeforeCopyTransAndTransferTracking(var IsHandled: Booelan;TransferHeader: Record "Transfer Header";TransLine: Record "Transfer Line") We are adding derived lines and tracking with our own method and so this would be redundant here.

AndyF2k25 avatar Jul 23 '21 05:07 AndyF2k25

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 Jul 27 '21 07:07 JesperSchulz