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

@@ -78,9 +78,9 @@ class Quote extends Model
];
protected $casts = [
'registration_date' => 'date',
'receipt_date' => 'date',
'completion_date' => 'date',
'registration_date' => 'date:Y-m-d',
'receipt_date' => 'date:Y-m-d',
'completion_date' => 'date:Y-m-d',
'finalized_at' => 'datetime',
'is_final' => 'boolean',
'calculation_inputs' => 'array',