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:
@@ -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;
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user