feat: 견적확정 밸리데이션, 작업지시 통계 공정별 카운트, 입고/재고 개선
- 견적확정 시 업체명/현장명/담당자/연락처 필수 검증 추가 (QuoteService) - 작업지시 stats API에 by_process 공정별 카운트 반환 추가 - 작업지시 목록/상세 쿼리에 수주 개소(rootNodes) 연관 로딩 - 작업지시 품목에 sourceOrderItem.node 관계 추가 - 입고관리 완료건 수정 허용 및 재고 차이 조정 - work_order_step_progress 테이블 마이그레이션 - receivings 테이블 options 컬럼 추가 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -157,4 +157,34 @@ public function registerMaterialInput(Request $request, int $id)
|
||||
return $this->service->registerMaterialInput($id, $request->input('material_ids', []));
|
||||
}, __('message.work_order.material_input_registered'));
|
||||
}
|
||||
|
||||
/**
|
||||
* 공정 단계 진행 현황 조회
|
||||
*/
|
||||
public function stepProgress(int $id)
|
||||
{
|
||||
return ApiResponse::handle(function () use ($id) {
|
||||
return $this->service->getStepProgress($id);
|
||||
}, __('message.work_order.fetched'));
|
||||
}
|
||||
|
||||
/**
|
||||
* 공정 단계 완료 토글
|
||||
*/
|
||||
public function toggleStepProgress(Request $request, int $id, int $progressId)
|
||||
{
|
||||
return ApiResponse::handle(function () use ($id, $progressId) {
|
||||
return $this->service->toggleStepProgress($id, $progressId);
|
||||
}, __('message.work_order.updated'));
|
||||
}
|
||||
|
||||
/**
|
||||
* 자재 투입 이력 조회
|
||||
*/
|
||||
public function materialInputHistory(int $id)
|
||||
{
|
||||
return ApiResponse::handle(function () use ($id) {
|
||||
return $this->service->getMaterialInputHistory($id);
|
||||
}, __('message.work_order.fetched'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user