fix: 견적 산출 모터 전압/가이드레일 설치유형 매핑 누락 수정

- MP(single/three) → motor_voltage(220V/380V) 매핑 추가
- GT(wall/floor/mixed) → installation_type(벽면형/측면형/혼합형) 매핑 추가
- 기존: 프론트 선택값이 BOM 계산에 반영되지 않던 버그

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-19 21:21:07 +09:00
parent 74a83e6711
commit 89344c0755

View File

@@ -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') {