fix: [production] 생산지시 생성 시 $process 미정의 오류 수정

- $process 변수를 if 블록 밖에서 null로 초기화
This commit is contained in:
김보곤
2026-03-17 11:03:37 +09:00
parent 40149afe1d
commit 3c8d2bd9f4

View File

@@ -1327,6 +1327,7 @@ public function createProductionOrder(int $orderId, array $data)
// 공정 옵션 초기화 (보조 공정 플래그 포함)
$workOrderOptions = null;
$process = null;
if ($processId) {
$process = \App\Models\Process::find($processId);
if ($process && ! empty($process->options['is_auxiliary'])) {