fix(monthly-comparison): 근태 인라인 수정 — vacation_type_id 응답 추가 + 조퇴 옵션
- API 응답에 attendance_type_id, vacation_type_id, vacation_days 포함 - 드롭다운에 조퇴(id=10) 옵션 추가 - onVacTypeChange에 조퇴→2시간 매핑 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -98,7 +98,10 @@ async function buildComparisonData(userId, year, month) {
|
||||
attendance: attend ? {
|
||||
total_work_hours: parseFloat(attend.total_work_hours),
|
||||
attendance_type: attend.attendance_type_name || '',
|
||||
vacation_type: attend.vacation_type_name || null
|
||||
attendance_type_id: attend.attendance_type_id || null,
|
||||
vacation_type: attend.vacation_type_name || null,
|
||||
vacation_type_id: attend.vacation_type_id || null,
|
||||
vacation_days: attend.vacation_days ? parseFloat(attend.vacation_days) : null
|
||||
} : null,
|
||||
status,
|
||||
hours_diff: hoursDiff
|
||||
|
||||
Reference in New Issue
Block a user