diff --git a/app/Services/Quote/FormulaEvaluatorService.php b/app/Services/Quote/FormulaEvaluatorService.php index 9c04c72a..bf2e7825 100644 --- a/app/Services/Quote/FormulaEvaluatorService.php +++ b/app/Services/Quote/FormulaEvaluatorService.php @@ -795,10 +795,17 @@ public function calculateBomWithDebug( $tenantId = $tenantId ?? session('selected_tenant_id'); $this->currentTenantId = $tenantId; - // Step 1: 입력값 수집 + // Step 1: 입력값 수집 (React 동기화 변수 포함) $this->addDebugStep(1, '입력값수집', [ 'W0' => $inputVariables['W0'] ?? null, 'H0' => $inputVariables['H0'] ?? null, + 'QTY' => $inputVariables['QTY'] ?? 1, + 'PC' => $inputVariables['PC'] ?? '', + 'GT' => $inputVariables['GT'] ?? 'wall', + 'MP' => $inputVariables['MP'] ?? 'single', + 'CT' => $inputVariables['CT'] ?? 'basic', + 'WS' => $inputVariables['WS'] ?? 50, + 'INSP' => $inputVariables['INSP'] ?? 50000, 'finished_goods' => $finishedGoodsCode, ]); diff --git a/resources/views/quote-formulas/simulator.blade.php b/resources/views/quote-formulas/simulator.blade.php index 6e3b6394..cfb7189b 100644 --- a/resources/views/quote-formulas/simulator.blade.php +++ b/resources/views/quote-formulas/simulator.blade.php @@ -85,31 +85,78 @@ class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-2 rounded-lg font-medium