ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] ProdOrderStatusManagement.Codeunit.al - OnFlushProdOrderOnAfterProdOrderCompSetFilters
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;
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.