|
|
@ -560,15 +560,13 @@ 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')) { |
|
|
|
// $tempPercentageReal[] = round($tempTtlPercentActual, 2); |
|
|
|
// $tempPercentageReal[] = round($tempTtlPercentActual, 2); |
|
|
|
$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,15 +1440,13 @@ 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')) { |
|
|
|
// $tempPercentageReal[] = round($tempTtlPercentActual, 2); |
|
|
|
// $tempPercentageReal[] = round($tempTtlPercentActual, 2); |
|
|
|
$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) { |
|
|
|