fix ngày phép
This commit is contained in:
parent
a0bfb19a34
commit
8f30081e55
|
|
@ -46,7 +46,7 @@ class AddMonthlyLeaveDays implements ShouldQueue
|
||||||
->where('ld_year', $this->year)
|
->where('ld_year', $this->year)
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
if (!$leaveDay) {
|
if (!$leaveDay && $this->month > 1) {
|
||||||
// Nếu chưa có dữ liệu năm hiện tại, tạo mới
|
// Nếu chưa có dữ liệu năm hiện tại, tạo mới
|
||||||
// Số ngày phép bằng với tháng hiện tại
|
// Số ngày phép bằng với tháng hiện tại
|
||||||
$leaveDay = new LeaveDays([
|
$leaveDay = new LeaveDays([
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue