|
|
@ -136,6 +136,9 @@ class DashboardBoDController extends Controller |
|
|
|
foreach ($projects as $index => $project) { |
|
|
|
foreach ($projects as $index => $project) { |
|
|
|
$project->scurve = MasterFunctionsHelper::getSCurve($project->id); |
|
|
|
$project->scurve = MasterFunctionsHelper::getSCurve($project->id); |
|
|
|
$selisihProgress = 0; |
|
|
|
$selisihProgress = 0; |
|
|
|
|
|
|
|
$planningProgress = 0; |
|
|
|
|
|
|
|
$actualProgress = 0; |
|
|
|
|
|
|
|
|
|
|
|
if ($project->scurve && $project->scurve[0]) { |
|
|
|
if ($project->scurve && $project->scurve[0]) { |
|
|
|
$planningArray = $project->scurve[0]['data']['percentagePlan']; |
|
|
|
$planningArray = $project->scurve[0]['data']['percentagePlan']; |
|
|
|
$actualArray = $project->scurve[0]['data']['percentageReal']; |
|
|
|
$actualArray = $project->scurve[0]['data']['percentageReal']; |
|
|
@ -178,6 +181,9 @@ class DashboardBoDController extends Controller |
|
|
|
foreach ($projects as $project) { |
|
|
|
foreach ($projects as $project) { |
|
|
|
$project->scurve = MasterFunctionsHelper::getSCurve($project->id); |
|
|
|
$project->scurve = MasterFunctionsHelper::getSCurve($project->id); |
|
|
|
$selisihProgress = 0; |
|
|
|
$selisihProgress = 0; |
|
|
|
|
|
|
|
$planningProgress = 0; |
|
|
|
|
|
|
|
$actualProgress = 0; |
|
|
|
|
|
|
|
|
|
|
|
if ($project->scurve && $project->scurve[0]) { |
|
|
|
if ($project->scurve && $project->scurve[0]) { |
|
|
|
$planningArray = $project->scurve[0]['data']['percentagePlan']; |
|
|
|
$planningArray = $project->scurve[0]['data']['percentagePlan']; |
|
|
|
$actualArray = $project->scurve[0]['data']['percentageReal']; |
|
|
|
$actualArray = $project->scurve[0]['data']['percentageReal']; |
|
|
|