feat: [approval] 기안함 휴가신청 → 휴가관리 연동
- 기안함에서 휴가/근태신청/사유서 양식 선택 시 전용 입력 폼 표시 - 양식코드별 유형 필터링 (leave/attendance_request/reason_report) - saveApproval()에서 content에 구조화된 데이터 포함 - handleApprovalCompleted()에서 Leave 없을 시 자동 생성 - createLeaveFromApproval() 메서드 추가
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
use App\Models\Finance\BankAccount;
|
||||
use App\Models\Finance\CorporateCard;
|
||||
use App\Services\ApprovalService;
|
||||
use App\Services\HR\LeaveService;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
use Illuminate\View\View;
|
||||
@@ -39,8 +40,9 @@ public function create(Request $request): View|Response
|
||||
$forms = $this->service->getApprovalForms();
|
||||
$lines = $this->service->getApprovalLines();
|
||||
[$cards, $accounts] = $this->getCardAndAccountData();
|
||||
$employees = app(LeaveService::class)->getActiveEmployees();
|
||||
|
||||
return view('approvals.create', compact('forms', 'lines', 'cards', 'accounts'));
|
||||
return view('approvals.create', compact('forms', 'lines', 'cards', 'accounts', 'employees'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user