ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 1005 Job Calculate Batches - Function SplitOneLine

Open IngoStender opened this issue 7 years ago • 1 comments

In codeunit 1005 Job Calculate Batches, function SplitOneLine, please add the following publisher. We need to perform additional code which should not be performed always in function JobPlanningLine.InitJobPlanningLine.

[...]
JobPlanningLine."Serial No." := '';
JobPlanningLine."Lot No." := '';
JobPlanningLine."Line No." := NextLineNo;
JobPlanningLine.InitJobPlanningLine;
// >> New
OnBeforeInsertJobPlanningLine(JobPlanningLine);
// << New
JobPlanningLine.INSERT(TRUE);
EXIT(TRUE);

[...]
LOCAL [IntegrationEvent] 
OnBeforeInsertJobPlanningLine(VAR JobPlanningLine : Record "Job Planning Line")

IngoStender avatar May 14 '19 08:05 IngoStender

Note: implemented as OnBeforeJobPlanningLineInsert

NKarolak avatar Jul 31 '19 13:07 NKarolak