|
|
|
@ -292,7 +292,6 @@ class ProjectController extends Controller
|
|
|
|
|
$countBuilder = $dataBuilder['count']; |
|
|
|
|
$dataGet = $builder->get(); |
|
|
|
|
$totalRecord = $countBuilder->count(); |
|
|
|
|
Artisan::call('calculate:ActualProgressProject'); |
|
|
|
|
return response()->json(['status' => 'success', 'code' => 200, 'data' => $dataGet, 'totalRecord' => $totalRecord], 200); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -438,17 +437,12 @@ class ProjectController extends Controller
|
|
|
|
|
Artisan::call('calculate:scurve', [ |
|
|
|
|
'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) |
|
|
|
|
{ |
|
|
|
|
$data = MasterFunctionsHelper::getLinearSCurve($request); |
|
|
|
|