From 89344c0755cd9c2e7dfefc95a04e84bb431c68d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Thu, 19 Feb 2026 21:21:07 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B2=AC=EC=A0=81=20=EC=82=B0=EC=B6=9C?= =?UTF-8?q?=20=EB=AA=A8=ED=84=B0=20=EC=A0=84=EC=95=95/=EA=B0=80=EC=9D=B4?= =?UTF-8?q?=EB=93=9C=EB=A0=88=EC=9D=BC=20=EC=84=A4=EC=B9=98=EC=9C=A0?= =?UTF-8?q?=ED=98=95=20=EB=A7=A4=ED=95=91=20=EB=88=84=EB=9D=BD=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - MP(single/three) → motor_voltage(220V/380V) 매핑 추가 - GT(wall/floor/mixed) → installation_type(벽면형/측면형/혼합형) 매핑 추가 - 기존: 프론트 선택값이 BOM 계산에 반영되지 않던 버그 Co-Authored-By: Claude Opus 4.6 --- app/Services/Quote/FormulaEvaluatorService.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Services/Quote/FormulaEvaluatorService.php b/app/Services/Quote/FormulaEvaluatorService.php index 5ded0b6..c34373e 100644 --- a/app/Services/Quote/FormulaEvaluatorService.php +++ b/app/Services/Quote/FormulaEvaluatorService.php @@ -1675,7 +1675,13 @@ private function calculateKyungdongBom( // 핸들러가 필요한 키 보장 (inputVariables에서 전달되지 않으면 기본값) $productModel = $inputVariables['product_model'] ?? 'KSS01'; $finishingType = $inputVariables['finishing_type'] ?? 'SUS'; - $installationType = $inputVariables['installation_type'] ?? '벽면형'; + + // 가이드레일 설치타입: 프론트 GT(wall/floor/mixed) → installation_type(벽면형/측면형/혼합형) 매핑 + $installationType = $inputVariables['installation_type'] ?? match ($inputVariables['GT'] ?? 'wall') { + 'floor' => '측면형', + 'mixed' => '혼합형', + default => '벽면형', + }; // 모터 전압: 프론트 MP(single/three) → motor_voltage(220V/380V) 매핑 $motorVoltage = $inputVariables['motor_voltage'] ?? match ($inputVariables['MP'] ?? 'single') {