fix: adjust condition in getCurrentOrCreate method for payroll period creation
This commit is contained in:
parent
fff815ae77
commit
3f094c6935
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user