fix: adjust condition in getCurrentOrCreate method for payroll period creation

This commit is contained in:
Yoga Pangestu 2026-09-05 08:44:41 +07:00
parent fff815ae77
commit 3f094c6935

View File

@ -50,7 +50,7 @@ public function getCurrentOrCreate(): PayrollPeriod
$now = now(); $now = now();
$cuttingDay = 5; $cuttingDay = 5;
if ($now->day < $cuttingDay) { if ($now->day <= $cuttingDay) {
$year = $now->year; $year = $now->year;
$month = $now->month; $month = $now->month;
} else { } else {