Skip to content

[W1][Codeunit][7321][Create Inventory Put-away] OnCreatePutAwayLinesFromPurchaseOnAfterSetRemQtyToPutAway #29051

Description

Why do you need this change?

Because those same events do exist in its counter part pick and movement:
codeunit 7322 "Create Inventory Pick/Movement"
and now we want to do the same for the put-away and it is not possible...

Describe the request

local procedure CreatePutAwayLinesFromPurchase(PurchaseHeaderVar: Variant)
    ....
                if PurchaseLine."Document Type" = PurchaseLine."Document Type"::Order then
                    RemQtyToPutAway := PurchaseLine."Qty. to Receive"
                else
                    RemQtyToPutAway := -PurchaseLine."Return Qty. to Ship";
                OnCreatePutAwayLinesFromPurchaseOnAfterSetRemQtyToPutAway(PurchaseHeader, PurchaseLine, CurrWarehouseActivityHeader, RemQtyToPutAway);

                FindReservationFromPurchaseLine(PurchaseLine);

    ....
end;

[InternalEvent(false, false)]
local procedure OnCreatePutAwayLinesFromPurchaseOnAfterSetRemQtyToPutAway(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var WarehouseActivityHeader: Record "Warehouse Activity Header"; var RemQtyToPutAway: Decimal)
begin
end;

Internal work item: AB#597438

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an eventships-in-future-updateFix ships in a future update

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions