ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Codeunit 1005 Job Calculate Batches - Function SplitOneLine
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")
Note: implemented as OnBeforeJobPlanningLineInsert