|
|
|
@ -560,15 +560,13 @@ class MasterFunctionsHelper
|
|
|
|
|
// if (new \DateTime($loopDay) < $today) { |
|
|
|
|
// $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')) { |
|
|
|
|
// $tempPercentageReal[] = round($tempTtlPercentActual, 2); |
|
|
|
|
$progressActualKomulatifWeek[] += round($tmpProgressActualWeek, 2); |
|
|
|
|
} |
|
|
|
|
$dateWeek[] = [$loopDay]; |
|
|
|
|
} |
|
|
|
|
$dateWeek[] = [$loopDay]; |
|
|
|
|
// $progressPlanKomulatifWeek[] += $tmpProgressPlanWeek; |
|
|
|
|
foreach ($dataPlanM as $keyPlanM) { |
|
|
|
|
# hitung untuk persentase progress planning |
|
|
|
@ -1442,15 +1440,13 @@ class MasterFunctionsHelper
|
|
|
|
|
$dataActivityPlan = []; |
|
|
|
|
$dataActivityActual = []; |
|
|
|
|
$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')) { |
|
|
|
|
// $tempPercentageReal[] = round($tempTtlPercentActual, 2); |
|
|
|
|
$progressActualKomulatifWeek[] += round($tmpProgressActualWeek, 2); |
|
|
|
|
} |
|
|
|
|
$dateWeek[] = [$loopDay]; |
|
|
|
|
} |
|
|
|
|
$dateWeek[] = [$loopDay]; |
|
|
|
|
// $progressPlanKomulatifWeek[] += $tmpProgressPlanWeek; |
|
|
|
|
// if (count($dataPlanM) > 0 && count($dataPlanM[0]) > 0) { |
|
|
|
|
foreach ($dataPlanM as $keyPlanM) { |
|
|
|
|