feat(WEB): 작업지시/출근부 기능 개선 및 마이그레이션 추가

- 작업지시 우선순위 필드 추가 (priority 마이그레이션)
- 수주-작업지시 품목 연동 source_order_item_id 컬럼 추가
- 수주 테이블에 account_code 필드 추가
- 작업지시 StoreRequest/UpdateRequest 우선순위 검증 추가
- WorkOrder 모델 priority fillable 추가
- 출근부 StoreRequest/UpdateRequest 검증 규칙 개선
- Employee Request 검증 규칙 수정
- SaleService/ItemService 수정
- WorkResultService 결과 처리 개선
- BankTransactionService 수정
- routes/api.php 엔드포인트 업데이트
- error.php 에러 메시지 추가

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-16 15:38:52 +09:00
parent 49d632b16b
commit 7543fd2256
19 changed files with 207 additions and 14 deletions

View File

@@ -32,7 +32,7 @@ public function index(array $params): LengthAwarePaginator
// 입금 쿼리 (payment_method = 'transfer')
$depositsQuery = DB::table('deposits')
->join('bank_accounts', 'deposits.bank_account_id', '=', 'bank_accounts.id')
->leftJoin('bank_accounts', 'deposits.bank_account_id', '=', 'bank_accounts.id')
->leftJoin('clients', 'deposits.client_id', '=', 'clients.id')
->where('deposits.tenant_id', $tenantId)
->where('deposits.payment_method', 'transfer')
@@ -58,7 +58,7 @@ public function index(array $params): LengthAwarePaginator
// 출금 쿼리 (payment_method = 'transfer')
$withdrawalsQuery = DB::table('withdrawals')
->join('bank_accounts', 'withdrawals.bank_account_id', '=', 'bank_accounts.id')
->leftJoin('bank_accounts', 'withdrawals.bank_account_id', '=', 'bank_accounts.id')
->leftJoin('clients', 'withdrawals.client_id', '=', 'clients.id')
->where('withdrawals.tenant_id', $tenantId)
->where('withdrawals.payment_method', 'transfer')