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();
|
$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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user