From c5e056463c3ef40f337124d1ba8008d12808abc1 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 20 Feb 2014 11:07:28 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=A5=EB=B0=94=EA=B5=AC=EB=8B=88=20?= =?UTF-8?q?=EB=8B=B4=EA=B8=B0=EB=95=8C=20=EC=9E=AC=EA=B3=A0=EC=88=98?= =?UTF-8?q?=EB=9F=89=20=EC=B2=B4=ED=81=AC=20=EC=BD=94=EB=93=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/cartupdate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shop/cartupdate.php b/shop/cartupdate.php index 0f3556001..4e9383508 100644 --- a/shop/cartupdate.php +++ b/shop/cartupdate.php @@ -160,7 +160,7 @@ else // 장바구니에 담기 and io_id = '$io_id' and io_type = '$io_type' and ct_stock_use = 0 - and ct_status in ('주문', '입금', '준비') "; + and ct_status = '쇼핑' "; $row = sql_fetch($sql); $sum_qty = $row['cnt']; @@ -173,7 +173,7 @@ else // 장바구니에 담기 if ($ct_qty + $sum_qty > $it_stock_qty) { - alert($io_value." 의 재고수량이 부족합니다.\\n\\n현재 재고수량 : " . number_format($it_stock_qty) . " 개"); + alert($io_value." 의 재고수량이 부족합니다.\\n\\n현재 재고수량 : " . number_format($it_stock_qty - $sum_qty) . " 개"); } } //--------------------------------------------------------