feat: [esign] 근로계약서 작성 시 사원 연봉 자동 반영

- 사원검색 API에 연봉 금액 포함
- 사원 선택 시 연봉 총금액/월급여 템플릿 변수 자동 채움
This commit is contained in:
김보곤
2026-03-11 16:46:56 +09:00
parent 60e057b8c6
commit d729e2c586
2 changed files with 14 additions and 0 deletions

View File

@@ -112,6 +112,8 @@ public function searchEmployees(Request $request): JsonResponse
$birthDay = substr($rn, 4, 2);
}
$salaryInfo = $emp->getSalaryInfo();
return [
'id' => $emp->id,
'name' => $emp->user?->name,
@@ -125,6 +127,7 @@ public function searchEmployees(Request $request): JsonResponse
'birth_year' => $birthYear,
'birth_month' => $birthMonth,
'birth_day' => $birthDay,
'annual_salary' => $salaryInfo['annual_salary'] ?? null,
];
});