From 2ad27d738f4c0874936588d95b26d3f76642206d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Mon, 9 Feb 2026 21:30:52 +0900 Subject: [PATCH] =?UTF-8?q?fix(WEB):=20=EC=88=98=EC=A3=BC=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C=20=EC=A1=B0=EA=B1=B4=20=EA=B0=95=ED=99=94=20=EB=B0=8F?= =?UTF-8?q?=20=EA=B0=9C=EB=B3=84=EC=82=AD=EC=A0=9C=20=EA=B8=B0=EB=8A=A5=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 삭제 버튼 수주등록/수주확정 상태에서만 표시 (생산지시 이후 삭제 불가) - deleteItem 핸들러 추가하여 개별 삭제 지원 - 삭제 후 통계(stats) 자동 갱신 --- .../sales/order-management-sales/page.tsx | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/app/[locale]/(protected)/sales/order-management-sales/page.tsx b/src/app/[locale]/(protected)/sales/order-management-sales/page.tsx index 44c58f9a..40e2291a 100644 --- a/src/app/[locale]/(protected)/sales/order-management-sales/page.tsx +++ b/src/app/[locale]/(protected)/sales/order-management-sales/page.tsx @@ -606,8 +606,8 @@ function OrderListContent() { 수정 - {/* 삭제 버튼 - shipped, cancelled 제외 모든 상태에서 표시 */} - {order.status !== "shipped" && order.status !== "cancelled" && ( + {/* 삭제 버튼 - 수주등록/수주확정 상태에서만 표시 (생산지시 이후 삭제 불가) */} + {(order.status === "order_registered" || order.status === "order_confirmed") && (