Can you please check if it is correct or not
trigger OnAfterGetRecord()
var
myInt: Integer;
begin
//Message(' Resource %1 and title %2', Resource."No.", Resource."Job Title");
Rec_JobTask.Reset();
Rec_JobTask.SetRange("Job Task No.", "Job Planning Line"."Job Task No.");
if Rec_JobTask.Find('-') then
repeat
Quantity_Total := Quantity_Total + "Job Planning Line".Quantity;
until
Rec_JobTask."Job Task No." = Rec_JobPlanningLine."Job Task No.";