feat:경동기업 견적/수주 전환 로직 개선

- KyungdongFormulaHandler: 수식 계산 로직 리팩토링 및 확장
- OrderService: 수주 전환 시 BOM 품목 매핑 로직 추가
- QuoteService: 견적 상태 처리 개선
- FormulaEvaluatorService: 디버그 로깅 추가
- Quote 모델: 캐스팅 타입 수정

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-05 21:58:49 +09:00
parent 9f2b1cf44a
commit f640a837e9
7 changed files with 386 additions and 85 deletions

View File

@@ -331,10 +331,12 @@ public function scopeSearch($query, ?string $keyword)
/**
* 수정 가능 여부 확인
* - 모든 상태에서 수정 가능 (finalized, converted 포함)
* - 수주 전환된 견적 수정 시 연결된 수주도 함께 동기화됨
*/
public function isEditable(): bool
{
return ! in_array($this->status, [self::STATUS_FINALIZED, self::STATUS_CONVERTED]);
return true;
}
/**