fix: [hr] 사업소득자 임금대장 행 삭제 후 일괄저장 실패 수정

- 모든 행 삭제 시 "저장할 데이터가 없습니다" 오류 → 확인 후 서버 전송으로 변경
- 백엔드 validation: required|array → present|array (빈 배열 허용)
- 서버의 orphan draft 자동 삭제 로직이 정상 동작하도록 수정
This commit is contained in:
김보곤
2026-03-03 19:30:24 +09:00
parent 60291e08f1
commit 8762882b54
2 changed files with 6 additions and 5 deletions

View File

@@ -85,7 +85,7 @@ public function bulkSave(Request $request): JsonResponse
$validated = $request->validate([
'year' => 'required|integer|min:2020|max:2100',
'month' => 'required|integer|min:1|max:12',
'items' => 'required|array',
'items' => 'present|array',
'items.*.payment_id' => 'nullable|integer',
'items.*.user_id' => 'nullable|integer',
'items.*.display_name' => 'required|string|max:100',