fix: 견적 V2 BOM 계산 오류 수정

- ItemService.php: has_bom 계산 필드 추가 (BOM 필터링용)
- FormulaEvaluatorService.php: process_group 필드 추가 (공정별 그룹핑)

관련: 견적 V2 자동 견적 산출 4가지 오류 수정

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-26 16:12:45 +09:00
parent 462f6bd9e3
commit f2da990771
2 changed files with 39 additions and 1 deletions

View File

@@ -431,6 +431,9 @@ public function index(array $params): LengthAwarePaginator
unset($arr['code']);
}
// has_bom 계산 필드 추가 (BOM이 있는 품목 필터링에 사용)
$arr['has_bom'] = ! empty($arr['bom']) && is_array($arr['bom']) && count($arr['bom']) > 0;
return $arr;
})
);