|
|
@ -560,7 +560,6 @@ class MasterFunctionsHelper |
|
|
|
// if (new \DateTime($loopDay) < $today) { |
|
|
|
// if (new \DateTime($loopDay) < $today) { |
|
|
|
// $statusCutOfDate = true; |
|
|
|
// $statusCutOfDate = true; |
|
|
|
// } |
|
|
|
// } |
|
|
|
if (new \DateTime($loopDay) == new \DateTime($loopDay . ' Friday')) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$progressPlanKomulatifWeek[] += round($tmpProgressPlanWeek,2); |
|
|
|
$progressPlanKomulatifWeek[] += round($tmpProgressPlanWeek,2); |
|
|
|
if (new \DateTime($loopDay . ' Friday') <= new \DateTime($today . ' Friday')) { |
|
|
|
if (new \DateTime($loopDay . ' Friday') <= new \DateTime($today . ' Friday')) { |
|
|
@ -568,7 +567,6 @@ class MasterFunctionsHelper |
|
|
|
$progressActualKomulatifWeek[] += round($tmpProgressActualWeek, 2); |
|
|
|
$progressActualKomulatifWeek[] += round($tmpProgressActualWeek, 2); |
|
|
|
} |
|
|
|
} |
|
|
|
$dateWeek[] = [$loopDay]; |
|
|
|
$dateWeek[] = [$loopDay]; |
|
|
|
} |
|
|
|
|
|
|
|
// $progressPlanKomulatifWeek[] += $tmpProgressPlanWeek; |
|
|
|
// $progressPlanKomulatifWeek[] += $tmpProgressPlanWeek; |
|
|
|
foreach ($dataPlanM as $keyPlanM) { |
|
|
|
foreach ($dataPlanM as $keyPlanM) { |
|
|
|
# hitung untuk persentase progress planning |
|
|
|
# hitung untuk persentase progress planning |
|
|
@ -1442,7 +1440,6 @@ class MasterFunctionsHelper |
|
|
|
$dataActivityPlan = []; |
|
|
|
$dataActivityPlan = []; |
|
|
|
$dataActivityActual = []; |
|
|
|
$dataActivityActual = []; |
|
|
|
$today = date('Y-m-d'); |
|
|
|
$today = date('Y-m-d'); |
|
|
|
if (new \DateTime($loopDay) == new \DateTime($loopDay . ' Friday')) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$progressPlanKomulatifWeek[] += round($tmpProgressPlanWeek,2); |
|
|
|
$progressPlanKomulatifWeek[] += round($tmpProgressPlanWeek,2); |
|
|
|
if (new \DateTime($loopDay . ' Friday') <= new \DateTime($today . ' Friday')) { |
|
|
|
if (new \DateTime($loopDay . ' Friday') <= new \DateTime($today . ' Friday')) { |
|
|
@ -1450,7 +1447,6 @@ class MasterFunctionsHelper |
|
|
|
$progressActualKomulatifWeek[] += round($tmpProgressActualWeek, 2); |
|
|
|
$progressActualKomulatifWeek[] += round($tmpProgressActualWeek, 2); |
|
|
|
} |
|
|
|
} |
|
|
|
$dateWeek[] = [$loopDay]; |
|
|
|
$dateWeek[] = [$loopDay]; |
|
|
|
} |
|
|
|
|
|
|
|
// $progressPlanKomulatifWeek[] += $tmpProgressPlanWeek; |
|
|
|
// $progressPlanKomulatifWeek[] += $tmpProgressPlanWeek; |
|
|
|
// if (count($dataPlanM) > 0 && count($dataPlanM[0]) > 0) { |
|
|
|
// if (count($dataPlanM) > 0 && count($dataPlanM[0]) > 0) { |
|
|
|
foreach ($dataPlanM as $keyPlanM) { |
|
|
|
foreach ($dataPlanM as $keyPlanM) { |
|
|
|