|
|
|
@ -932,7 +932,7 @@ class MasterFunctionsHelper
|
|
|
|
|
->groupBy('activity_id') |
|
|
|
|
->first(); |
|
|
|
|
|
|
|
|
|
$weekCount = $keyPlanM->duration / $keyPlanM->duration; // jadiin perhari (1) |
|
|
|
|
$weekCount = 1; // jadiin perhari (1) |
|
|
|
|
$weeklyPlan = $sumVolPlan->ttl_qty_plan / $weekCount; |
|
|
|
|
$weeklyProgress = $weeklyPlan / $sumVolPlan->ttl_qty_plan * $keyPlanM->bobot_planning; |
|
|
|
|
|
|
|
|
@ -1056,9 +1056,9 @@ class MasterFunctionsHelper
|
|
|
|
|
$tempPercentagePlan[] = round($tempTtlPercentPlan, 2); |
|
|
|
|
$tempPercentagePlanWhr[] = ["weekly period", $tempPercentagePlan]; |
|
|
|
|
$tempPercentageReal[] = round($tempTtlPercentActual, 2); |
|
|
|
|
if ($tempTtlPercentPlan >= 100 && $tempTtlPercentActual >= 100) { |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
// if ($tempTtlPercentPlan >= 100 && $tempTtlPercentActual >= 100) { |
|
|
|
|
// break; |
|
|
|
|
// } |
|
|
|
|
} else { |
|
|
|
|
$tempPercentage[] = array(round($sumPercentagePlan, 2), round($sumPercentageActual, 2)); |
|
|
|
|
$tempPercentagePlan[] = round($sumPercentagePlan, 2); |
|
|
|
@ -1092,20 +1092,22 @@ class MasterFunctionsHelper
|
|
|
|
|
$totalBCWP = $lastReal * $dataProject->rencana_biaya / 100; |
|
|
|
|
$dataResponse = array( |
|
|
|
|
"date" => $tempDate, |
|
|
|
|
"start" => $begin, |
|
|
|
|
"end" => $end, |
|
|
|
|
"percentage" => $tempPercentage, |
|
|
|
|
"percentagePlan" => $tempPercentagePlan, |
|
|
|
|
"percentageReal" => $tempPercentageReal, |
|
|
|
|
"data_details" => $arr_ActualM, |
|
|
|
|
"budget_control" => array( |
|
|
|
|
"current_budget" => $totalRencanaBudget, |
|
|
|
|
"acwp" => round($totalACWP, 0), |
|
|
|
|
"bcwp" => round($totalBCWP, 0), |
|
|
|
|
"rem_to_complete" => ($totalRencanaBudget - round($totalACWP, 0)), |
|
|
|
|
"add_cost_to_complete" => 0, |
|
|
|
|
"estimated_at_completion" => $estimatedCost, |
|
|
|
|
"cost_deviation" => $costDeviation, |
|
|
|
|
"potential" => $potential, |
|
|
|
|
) |
|
|
|
|
// "budget_control" => array( |
|
|
|
|
// "current_budget" => $totalRencanaBudget, |
|
|
|
|
// "acwp" => round($totalACWP, 0), |
|
|
|
|
// "bcwp" => round($totalBCWP, 0), |
|
|
|
|
// "rem_to_complete" => ($totalRencanaBudget - round($totalACWP, 0)), |
|
|
|
|
// "add_cost_to_complete" => 0, |
|
|
|
|
// "estimated_at_completion" => $estimatedCost, |
|
|
|
|
// "cost_deviation" => $costDeviation, |
|
|
|
|
// "potential" => $potential, |
|
|
|
|
// ) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$dataFinal[] = array( |
|
|
|
|