From 3f094c693583f8f730821356212fc83322ae88c8 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Sat, 5 Sep 2026 08:44:41 +0700 Subject: [PATCH] fix: adjust condition in getCurrentOrCreate method for payroll period creation --- app/Services/Admin/Finance/Payroll/PayrollPeriodService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Admin/Finance/Payroll/PayrollPeriodService.php b/app/Services/Admin/Finance/Payroll/PayrollPeriodService.php index d33412d..4223308 100644 --- a/app/Services/Admin/Finance/Payroll/PayrollPeriodService.php +++ b/app/Services/Admin/Finance/Payroll/PayrollPeriodService.php @@ -50,7 +50,7 @@ public function getCurrentOrCreate(): PayrollPeriod $now = now(); $cuttingDay = 5; - if ($now->day < $cuttingDay) { + if ($now->day <= $cuttingDay) { $year = $now->year; $month = $now->month; } else {