Why do you need this change?
We need an event in procedure OnCheckEndingDateOnBeforeProdOrderLineCheck, since we want to perform custom code before running ProdOrderLineCheck procedure, but we want to be able to do it only if the inacessible global variable Blocked = false.
Describe the request
In procedure CheckEndingDate of table 5406 "Prod. Order Line" we need an event:
[IntegrationEvent(false, false)]
local procedure OnCheckEndingDateOnBeforeProdOrderLineCheck(var ProdOrderLine: Record "Prod. Order Line"; var ShowWarning: Boolean)
begin
end;
Changes between **:
procedure CheckEndingDate(ShowWarning: Boolean)
var
MfgReserveCheckDateConfl: Codeunit "Mfg. ReservCheckDateConfl";
begin
OnBeforeCheckEndingDate(Rec, ShowWarning);
if not Blocked then begin
**OnCheckEndingDateOnBeforeProdOrderLineCheck(Rec, ShowWarning);**
MfgReserveCheckDateConfl.ProdOrderLineCheck(Rec, ShowWarning);
ProdOrderLineReserve.AssignForPlanning(Rec);
end;
OnAfterCheckEndingDate(Rec);
end;
Internal work item: AB#638067
Why do you need this change?
We need an event in procedure OnCheckEndingDateOnBeforeProdOrderLineCheck, since we want to perform custom code before running ProdOrderLineCheck procedure, but we want to be able to do it only if the inacessible global variable Blocked = false.
Describe the request
In procedure CheckEndingDate of table 5406 "Prod. Order Line" we need an event:
Changes between **:
Internal work item: AB#638067