Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mavohra opened this issue Feb 26, 2025 · 0 comments
Labels
event-request Request for adding an event SCM GitHub request for SCM area

Comments

@mavohra
Copy link

mavohra commented Feb 26, 2025

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

@PredragMaricic PredragMaricic added event-request Request for adding an event SCM GitHub request for SCM area labels Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
event-request Request for adding an event SCM GitHub request for SCM area
Projects
None yet
Development

No branches or pull requests

2 participants