|
|
@ -1448,6 +1448,9 @@ class MasterFunctionsHelper |
|
|
|
// if($keyPlanM->duration == 0){ |
|
|
|
// if($keyPlanM->duration == 0){ |
|
|
|
// $duration = 2; |
|
|
|
// $duration = 2; |
|
|
|
// Tanggal awal |
|
|
|
// Tanggal awal |
|
|
|
|
|
|
|
if (count($keyPlanM) == 0) { |
|
|
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
} |
|
|
|
$startDate = new DateTime($keyPlanM[0]->planned_start); |
|
|
|
$startDate = new DateTime($keyPlanM[0]->planned_start); |
|
|
|
// Tanggal akhir |
|
|
|
// Tanggal akhir |
|
|
|
$endDate = new DateTime($keyPlanM[0]->planned_end); |
|
|
|
$endDate = new DateTime($keyPlanM[0]->planned_end); |
|
|
@ -1479,6 +1482,9 @@ class MasterFunctionsHelper |
|
|
|
// hitung progress actual |
|
|
|
// hitung progress actual |
|
|
|
if (count($dataActualM) > 0 && count($dataActualM[0]) > 0) { |
|
|
|
if (count($dataActualM) > 0 && count($dataActualM[0]) > 0) { |
|
|
|
foreach ($dataActualM as $keyActualM) { |
|
|
|
foreach ($dataActualM as $keyActualM) { |
|
|
|
|
|
|
|
if (count($keyPlanM) == 0) { |
|
|
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
} |
|
|
|
# hitung untuk persentase progress actual |
|
|
|
# hitung untuk persentase progress actual |
|
|
|
// $progressActualWeek = ((((($keyActualM->qty_actual / $keyActualM->sum_qty_actual) * 100) / $keyActualM->qty_plan)*100)*$keyActualM->bobot_planning)/100; |
|
|
|
// $progressActualWeek = ((((($keyActualM->qty_actual / $keyActualM->sum_qty_actual) * 100) / $keyActualM->qty_plan)*100)*$keyActualM->bobot_planning)/100; |
|
|
|
// jika total report > dari planning |
|
|
|
// jika total report > dari planning |
|
|
|