- simulateBom API 엔드포인트 추가 (calculateBomWithDebug 연동)
- simulator.blade.php: BOM 디버깅 모드 탭 추가
- 10단계 디버그 스텝 패널
- 공정별 품목 그룹화 표시
- 원가 요약 (공정별 소계, 총합계)
- FormulaEvaluatorService: currentTenantId 속성 추가
- 콘솔/API에서 tenant_id 전달 가능하도록 수정
- routes/api.php: simulate-bom 라우트 추가
주요 변경사항:
- calculateCategoryPrice: 카테고리 기반 단가 계산 (면적/중량/수량)
- groupItemsByProcess: 공정별 품목 그룹화 (screen/bending/steel/electric/assembly)
- calculateBomWithDebug: 10단계 디버깅 정보 포함 BOM 계산
- getItemPrice: items.attributes.salesPrice fallback 추가
- evaluateQuantityFormula: 빈 수식 기본값 1 처리
- expandBomWithFormulas: Design 형식 childItemCode 지원
- DesignItemSeeder: 모든 품목에 process_type 추가
- 견적 시뮬레이터 UI 레이아웃 개선 (가로 배치, 반응형)
- FlowTester ConditionEvaluator 클래스 추가 (조건부 실행 지원)
- FormulaEvaluatorService 기능 확장
- DependencyResolver 의존성 해결 로직 개선
- PushDeviceToken 모델 확장 (FCM 토큰 관리)
- QuoteFormula API 엔드포인트 추가
- FlowTester 가이드 모달 업데이트