|
|
|
@ -339,7 +339,7 @@ class MasterFunctionsHelper
|
|
|
|
|
->where('activity_id', '=', $keyPlanM->id) |
|
|
|
|
->groupBy('activity_id') |
|
|
|
|
->first(); |
|
|
|
|
$weekCount = $keyPlanM->duration / $keyPlanM->duration; |
|
|
|
|
$weekCount = $keyPlanM->duration / 7; |
|
|
|
|
$weeklyPlan = $weekCount > 0 ? $sumVolPlan->ttl_qty_plan / $weekCount : 0; |
|
|
|
|
$weeklyProgress = $weeklyPlan / $sumVolPlan->ttl_qty_plan * $keyPlanM->bobot_planning; |
|
|
|
|
// $weeklyPlan = $weekCount > 0 ? $keyPlanM->bobot_planning / $weekCount : 0; |
|
|
|
|