ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] ProdOrderStatusManagement.Codeunit.al - OnFlushProdOrderOnAfterProdOrderCompSetFilters

Open andersws opened this issue 5 years ago • 1 comments

Can you please add OnFlushProdOrderOnAfterProdOrderCompSetFilters to procedure FlushProdOrder in Codeunit 5407, "Prod. Order Status Management"?

with ProdOrderComp do begin
            SetCurrentKey(Status, "Prod. Order No.", "Routing Link Code", "Flushing Method");
            if NewStatus = NewStatus::Released then
                SetFilter(
                  "Flushing Method",
                  '%1|%2',
                  "Flushing Method"::Forward,
                  "Flushing Method"::"Pick + Forward")
            else
                SetFilter(
                  "Flushing Method",
                  '%1|%2',
                  "Flushing Method"::Backward,
                  "Flushing Method"::"Pick + Backward");
            SetRange("Routing Link Code", '');
            SetRange(Status, Status::Released);
            SetRange("Prod. Order No.", ProdOrder."No.");
            SetFilter("Item No.", '<>%1', '');
            LockTable();
            // >>>>>>>>>>
            OnFlushProdOrderOnAfterProdOrderCompSetFilters(ProdOrderComp);
            // <<<<<<<<<<
            if FindSet then begin
                NoOfRecords := Count;
                Window.Open(
                  Text002 +
                  Text003);
                LineCount := 0;
[IntegrationEvent(false, false)]
local procedure OnFlushProdOrderOnAfterProdOrderCompSetFilters(var ProdOrderComponent: Record "Prod. Order Component")
begin
end;

andersws avatar Jul 29 '21 07:07 andersws

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 Aug 02 '21 15:08 JesperSchulz