|
|
@ -581,10 +581,12 @@ class ProjectController extends Controller |
|
|
|
$plannedEnd = Activity::where('version_gantt_id', $ganttId) |
|
|
|
$plannedEnd = Activity::where('version_gantt_id', $ganttId) |
|
|
|
->orderByDesc('planned_end') |
|
|
|
->orderByDesc('planned_end') |
|
|
|
->value('planned_end'); |
|
|
|
->value('planned_end'); |
|
|
|
$result->header->start_date = $startDate; |
|
|
|
if (isset($result->header)) { |
|
|
|
$result->header->end_date = $maxEndDate->end_date; |
|
|
|
$result->header->start_date = $startDate; |
|
|
|
$result->header->planned_start = $plannedStart; |
|
|
|
$result->header->end_date = $maxEndDate->end_date; |
|
|
|
$result->header->planned_end = $plannedEnd; |
|
|
|
$result->header->planned_start = $plannedStart; |
|
|
|
|
|
|
|
$result->header->planned_end = $plannedEnd; |
|
|
|
|
|
|
|
} |
|
|
|
return response()->json(['status'=>'success','code'=> 200,'data'=>$result, 'gantt'=>$ganttId], 200); |
|
|
|
return response()->json(['status'=>'success','code'=> 200,'data'=>$result, 'gantt'=>$ganttId], 200); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|