Skip to content

[Event Request] Codeunit 7324 "Whse.-Activity-Post" - Procedure PostOutput - OnAfterPostOutput #28282

Closed
@mavohra

Description

@mavohra

Describe the request

Please add an Event OnAfterPostOutput in the procedure PostOutput in Codeunit 7324 "Whse.-Activity-Post"

  local procedure PostOutput(var ProdOrder: Record "Production Order")
    var
        ProdOrderLine: Record "Prod. Order Line";
    begin
        TempWhseActivLine.Reset();
        TempWhseActivLine.Find('-');
        ProdOrder.Get(TempWhseActivLine."Source Subtype", TempWhseActivLine."Source No.");
        repeat
            ProdOrderLine.Get(TempWhseActivLine."Source Subtype", TempWhseActivLine."Source No.", TempWhseActivLine."Source Line No.");
            PostOutputLine(ProdOrder, ProdOrderLine);
        until TempWhseActivLine.Next() = 0;
        PostedSourceType := TempWhseActivLine."Source Type";
        PostedSourceSubType := TempWhseActivLine."Source Subtype";
        PostedSourceNo := TempWhseActivLine."Source No.";
        OnAfterPostOutput(ProdOrder); // <------------------------------------------------------------ New Event
    end;
 [IntegrationEvent(false, false)]
    local procedure OnAfterPostOutput(var ProdOrder: Record "Production Order")
    begin
    end;

Additional context

We need to handle handling warehouse rounding adjustments.
Internal work item: AB#567158

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