From f0fffcb16be9343e7ac5987ebb765bc9e6fe26de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Sun, 22 Mar 2026 10:38:01 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[=EC=9E=90=EC=9E=AC=ED=88=AC=EC=9E=85]?= =?UTF-8?q?=20=EA=B0=95=EC=A0=9C=EC=9E=85=EA=B3=A0=20=ED=86=A0=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20undefined=20=EC=88=98=EC=A0=95=20(pt=5Fitem=5Fcode?= =?UTF-8?q?=20=EC=B0=B8=EC=A1=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../production/WorkerScreen/MaterialInputModal.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/production/WorkerScreen/MaterialInputModal.tsx b/src/components/production/WorkerScreen/MaterialInputModal.tsx index 942dfa4d..076e3939 100644 --- a/src/components/production/WorkerScreen/MaterialInputModal.tsx +++ b/src/components/production/WorkerScreen/MaterialInputModal.tsx @@ -353,9 +353,11 @@ export function MaterialInputModal({ setIsForceCreating(true); const result = await forceCreateReceiving(itemId, 100); if (result.success && result.data) { - const rm = (result.data as Record).rm_item_code; - const label = rm ? `원자재 ${rm} → 재공품 ${result.data.item_code}` : result.data.item_code; - toast.success(`${label} 입고 완료 (LOT: ${result.data.lot_no}, ${result.data.qty}EA)`); + const d = result.data as Record; + const rm = d.rm_item_code || d.rm_item_name; + const pt = d.pt_item_code || d.item_code; + const label = rm ? `원자재 ${rm} → 재공품 ${pt}` : String(pt); + toast.success(`${label} 입고 완료 (LOT: ${d.lot_no}, ${d.qty}EA)`); handleStockSearch(itemCode); loadMaterials(); } else {