Skip to content

[W1][Codeunit][7321][Create Inventory Put-away] OnCreatePutAwayLinesFromSalesOnAfterSetRemQtyToPutAway #29052

@Duizy1971

Description

@Duizy1971

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 CreatePutAwayLinesFromSales(SalesHeaderVar: Variant)
    ....
                if SalesLine."Document Type" = SalesLine."Document Type"::Order then
                    RemQtyToPutAway := -SalesLine."Qty. to Ship"
                else
                    RemQtyToPutAway := SalesLine."Return Qty. to Receive";
                
                OnCreatePutAwayLinesFromSalesOnAfterSetRemQtyToPutAway(SalesHeader, SalesLine, CurrWarehouseActivityHeader, RemQtyToPutAway);
    ....
end;

[InternalEvent(false, false)]
local procedure OnCreatePutAwayLinesFromSalesOnAfterSetRemQtyToPutAway(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var WarehouseActivityHeader: Record "Warehouse Activity Header"; var RemQtyToPutAway: Decimal)
begin
end;

Internal work item: AB#597436

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