fix: [QA] 수주 날짜 필터 COALESCE + 배차 상태 자동 전환 + 견적 날짜 캐스트 수정

- OrderService: 날짜 필터를 COALESCE(received_at, created_at)로 NULL 안전 처리
- VehicleDispatchService: update() 시 freight_cost_type 유무로 status 자동 결정
- Quote 모델: date 캐스트를 date:Y-m-d로 변경 (UTC 직렬화 방지)
This commit is contained in:
2026-03-19 23:57:56 +09:00
parent 949efc27e2
commit bb4d9d8fbd
5 changed files with 17 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
# 논리적 데이터베이스 관계 문서
> **자동 생성**: 2026-03-19 16:29:38
> **자동 생성**: 2026-03-19 16:09:46
> **소스**: Eloquent 모델 관계 분석
## 📊 모델별 관계 현황
@@ -88,17 +88,6 @@ ### hometax_invoice_journals
- **tenant()**: belongsTo → `tenants`
- **invoice()**: belongsTo → `hometax_invoices`
### bending_data_rows
**모델**: `App\Models\BendingDataRow`
- **bendingItem()**: belongsTo → `bending_items`
### bending_items
**모델**: `App\Models\BendingItem`
- **bendingData()**: hasMany → `bending_data`
- **files()**: hasMany → `files`
### biddings
**모델**: `App\Models\Bidding\Bidding`
@@ -734,6 +723,11 @@ ### process_steps
- **process()**: belongsTo → `processes`
### bending_item_mappings
**모델**: `App\Models\Production\BendingItemMapping`
- **item()**: belongsTo → `items`
### work_orders
**모델**: `App\Models\Production\WorkOrder`