|
|
@ -292,7 +292,6 @@ class ProjectController extends Controller |
|
|
|
$countBuilder = $dataBuilder['count']; |
|
|
|
$countBuilder = $dataBuilder['count']; |
|
|
|
$dataGet = $builder->get(); |
|
|
|
$dataGet = $builder->get(); |
|
|
|
$totalRecord = $countBuilder->count(); |
|
|
|
$totalRecord = $countBuilder->count(); |
|
|
|
Artisan::call('calculate:ActualProgressProject'); |
|
|
|
|
|
|
|
return response()->json(['status' => 'success', 'code' => 200, 'data' => $dataGet, 'totalRecord' => $totalRecord], 200); |
|
|
|
return response()->json(['status' => 'success', 'code' => 200, 'data' => $dataGet, 'totalRecord' => $totalRecord], 200); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -438,15 +437,10 @@ class ProjectController extends Controller |
|
|
|
Artisan::call('calculate:scurve', [ |
|
|
|
Artisan::call('calculate:scurve', [ |
|
|
|
'project_id' => $request->project_id |
|
|
|
'project_id' => $request->project_id |
|
|
|
]); |
|
|
|
]); |
|
|
|
// $project = Project::find($request->project_id); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// if ($project) { |
|
|
|
|
|
|
|
// dispatch(new ProcessSCurve($project)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// return response()->json(['message' => 'S Curve calculation queued']); |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// return response()->json(['message' => 'Project not found'], 404); |
|
|
|
public function ActualProgressProjectCommand() { |
|
|
|
|
|
|
|
Artisan::call('calculate:ActualProgressProject'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function getLinearSCurve(Request $request) |
|
|
|
public function getLinearSCurve(Request $request) |
|
|
|