feat: 수주 관리 Phase 3 - 고급 기능 API 구현
- 견적→수주 변환 API (POST /orders/from-quote/{quoteId})
- 생산지시 생성 API (POST /orders/{id}/production-order)
- FormRequest 검증 클래스 추가
- 중복 생성 방지 및 상태 검증 로직
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1083,6 +1083,12 @@
|
||||
|
||||
// 상태 관리
|
||||
Route::patch('/{id}/status', [OrderController::class, 'updateStatus'])->whereNumber('id')->name('v1.orders.status'); // 상태 변경
|
||||
|
||||
// 견적에서 수주 생성
|
||||
Route::post('/from-quote/{quoteId}', [OrderController::class, 'createFromQuote'])->whereNumber('quoteId')->name('v1.orders.from-quote');
|
||||
|
||||
// 생산지시 생성
|
||||
Route::post('/{id}/production-order', [OrderController::class, 'createProductionOrder'])->whereNumber('id')->name('v1.orders.production-order');
|
||||
});
|
||||
|
||||
// 작업지시 관리 API (Production)
|
||||
|
||||
Reference in New Issue
Block a user