feat(WEB): 수주 Bulk Delete API + 작업지시 Revert Force 통합
- 수주 일괄 삭제 API 추가 (DELETE /orders/bulk) - OrderBulkDeleteRequest (ids, force 검증) - force=true: hard delete (운영환경 차단), force=false: soft delete - 삭제 불가 건(상태/작업지시/출하) skip 처리 + skipped_ids 반환 - 작업지시 되돌리기 force/운영 모드 분기 - force=true (개발): 기존 hard delete 로직 유지 - force=false (운영): 작업지시 cancelled 상태 변경, options에 취소정보 기록, 자재 투입분 재고 역분개, 데이터 보존 - reason 필수 (운영 모드) - WorkOrder 모델에 STATUS_CANCELLED 상수 추가 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -101,6 +101,8 @@ class WorkOrder extends Model
|
||||
|
||||
public const STATUS_SHIPPED = 'shipped'; // 출하
|
||||
|
||||
public const STATUS_CANCELLED = 'cancelled'; // 취소
|
||||
|
||||
public const STATUSES = [
|
||||
self::STATUS_UNASSIGNED,
|
||||
self::STATUS_PENDING,
|
||||
@@ -108,6 +110,7 @@ class WorkOrder extends Model
|
||||
self::STATUS_IN_PROGRESS,
|
||||
self::STATUS_COMPLETED,
|
||||
self::STATUS_SHIPPED,
|
||||
self::STATUS_CANCELLED,
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user