From 00876b126b38964900c209402cac6f8fcb36bd08 Mon Sep 17 00:00:00 2001 From: farhantock Date: Tue, 21 May 2024 15:09:57 +0700 Subject: [PATCH] fix(s-curve):update cut off date today --- app/Helpers/MasterFunctionsHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Helpers/MasterFunctionsHelper.php b/app/Helpers/MasterFunctionsHelper.php index 9a9b18e..b0109b0 100644 --- a/app/Helpers/MasterFunctionsHelper.php +++ b/app/Helpers/MasterFunctionsHelper.php @@ -567,7 +567,7 @@ class MasterFunctionsHelper // } $progressPlanKomulatifWeek[] += round($tmpProgressPlanWeek, 2); - if (new \DateTime($loopDay . ' Friday') <= new \DateTime($today . ' Friday')) { + if ($loopDay <= $today) { // $tempPercentageReal[] = round($tempTtlPercentActual, 2); $progressActualKomulatifWeek[] += round($tmpProgressActualWeek, 2); }