docs: 견적 기능 개발 Phase 3 완료

- Phase 3 구현 문서 작성 (README, implementation, table-mapping)
- PROGRESS.md 업데이트 (Phase 3 완료 상태)
- getItemPrice() 연동, Price 모델 생성 기록
This commit is contained in:
2025-12-19 16:02:48 +09:00
parent 3721cfdc4b
commit 0eb96fcfc3
4 changed files with 566 additions and 15 deletions

View File

@@ -12,15 +12,15 @@
|-------|------|--------|--------|--------|
| Phase 1: 5130 분석 | ✅ 완료 | 100% | 2025-12-19 | 2025-12-19 |
| Phase 2: mng 분석 | ✅ 완료 | 100% | 2025-12-19 | 2025-12-19 |
| Phase 3: 구현 | ⏳ 대기 | 0% | - | - |
| Phase 3: 구현 | ✅ 완료 | 100% | 2025-12-19 | 2025-12-19 |
| Phase 4: API 개발 | ⏳ 대기 | 0% | - | - |
---
## 🔄 현재 작업
**현재 Phase:** Phase 2 완료, Phase 3 대기
**다음 작업:** mng 견적 기능 구현 (5130 수식 적용)
**현재 Phase:** Phase 3 완료, Phase 4 대기
**다음 작업:** 견적 API 개발
---
@@ -104,23 +104,38 @@
---
## 📋 Phase 3: mng 견적 기능 구현
## Phase 3: mng 견적 기능 구현 (완료)
### 체크리스트
- [ ] 테이블 매핑 (5130 → SAM)
- [ ] 수식 명세 작성
- [ ] UI 구현 (Livewire + Blade)
- [ ] 테스트 및 검증
- [ ] README.md 작성
- [x] 테이블 매핑 (5130 → SAM)
- [x] getItemPrice() 연동 구현
- [x] Price 모델 생성 (mng)
- [x] Seeder 확인 및 실행 방법 문서화
- [x] README.md 작성
### 산출물
- [ ] phase-3-implementation/README.md
- [ ] phase-3-implementation/table-mapping.md
- [ ] phase-3-implementation/formula-spec.md
- [ ] phase-3-implementation/implementation.md
- [x] [README.md](./phase-3-implementation/README.md) - 구현 요약
- [x] [table-mapping.md](./phase-3-implementation/table-mapping.md) - 테이블 매핑
- [x] [implementation.md](./phase-3-implementation/implementation.md) - 구현 상세
### 메모
_Phase 3 진행 시 메모 기록_
### 핵심 구현 내용
#### getItemPrice() 연동
**파일:** `mng/app/Services/Quote/FormulaEvaluatorService.php:324-335`
- prices 테이블 연동 완료
- 품목 코드 → 판매단가 조회 구현
#### Price 모델
**파일:** `mng/app/Models/Price.php`
- getCurrentPrice(): 현재 유효 단가 조회
- getSalesPriceByItemCode(): 품목 코드로 단가 조회
#### Seeder 실행 방법
```bash
cd /Users/hskwon/Works/@KD_SAM/SAM/api
php artisan db:seed --class=QuoteFormulaCategorySeeder
php artisan db:seed --class=QuoteFormulaSeeder
```
---