From 980618550791687c69c67dceb4a41b9a613703f3 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 28 May 2013 18:22:12 +0900 Subject: [PATCH] =?UTF-8?q?=EC=83=81=ED=92=88=EC=98=B5=EC=85=98=EC=9E=AC?= =?UTF-8?q?=EA=B3=A0=EA=B4=80=EB=A6=AC=20=ED=8E=98=EC=9D=B4=EC=A7=80=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 --- adm/admin.menu400.shop_1of2.php | 1 + adm/shop_admin/itemstocklist.php | 22 ++- adm/shop_admin/optionstocklist.php | 207 +++++++++++++++++++++++ adm/shop_admin/optionstocklistupdate.php | 22 +++ 4 files changed, 244 insertions(+), 8 deletions(-) create mode 100644 adm/shop_admin/optionstocklist.php create mode 100644 adm/shop_admin/optionstocklistupdate.php diff --git a/adm/admin.menu400.shop_1of2.php b/adm/admin.menu400.shop_1of2.php index 1af40089b..620df3357 100644 --- a/adm/admin.menu400.shop_1of2.php +++ b/adm/admin.menu400.shop_1of2.php @@ -13,6 +13,7 @@ $menu['menu400'] = array ( array('400650', '사용후기', G4_ADMIN_URL.'/shop_admin/itempslist.php', 'scf_ps'), array('400620', '상품재고관리', G4_ADMIN_URL.'/shop_admin/itemstocklist.php', 'scf_item_stock'), array('400610', '상품유형관리', G4_ADMIN_URL.'/shop_admin/itemtypelist.php', 'scf_item_type'), + array('400500', '상품옵션재고관리', G4_ADMIN_URL.'/shop_admin/optionstocklist.php', 'scf_item_option'), array('400500', '배송일괄처리', G4_ADMIN_URL.'/shop_admin/deliverylist.php', 'scf_deli', 1), array('400740', '배송업체관리', G4_ADMIN_URL.'/shop_admin/deliverycodelist.php', 'scf_deli_co', 1), array('400630', '이벤트관리', G4_ADMIN_URL.'/shop_admin/itemevent.php', 'scf_event'), diff --git a/adm/shop_admin/itemstocklist.php b/adm/shop_admin/itemstocklist.php index 2cf3d6e1b..f1e62f8cb 100644 --- a/adm/shop_admin/itemstocklist.php +++ b/adm/shop_admin/itemstocklist.php @@ -131,13 +131,19 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌 { $href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}"; - $sql1 = " select SUM(ct_qty) as sum_qty - from {$g4['shop_cart_table']} - where it_id = '{$row['it_id']}' - and ct_stock_use = '0' - and ct_status in ('주문', '준비') "; - $row1 = sql_fetch($sql1); - $wait_qty = $row1['sum_qty']; + // 선택옵션이 있을 경우 주문대기 수량 계산하지 않음 + $sql2 = " select count(*) as cnt from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' "; + $row2 = sql_fetch($sql2); + + if(!$row2['cnt']) { + $sql1 = " select SUM(ct_qty) as sum_qty + from {$g4['shop_cart_table']} + where it_id = '{$row['it_id']}' + and ct_stock_use = '0' + and ct_status in ('주문', '준비') "; + $row1 = sql_fetch($sql1); + $wait_qty = $row1['sum_qty']; + } // 가재고 (미래재고) $temporary_qty = $row['it_stock_qty'] - $wait_qty; @@ -154,7 +160,7 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌 > - 수정 + 수정 전체목록'; +?> + +
+ + + + + +
+ 상품재고 검색 + + + + 전체 상품 개 + + + + + + + + + + + + + +
+ +
+ +
+

상품옵션재고 목록

+

재고수정의 수치를 수정하시면 창고재고의 수치가 변경됩니다.

+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + '; + ?> + +
">상품명 순 정렬옵션항목옵션타입">창고재고 순 정렬주문대기가재고재고수정">판매 순 정렬관리
+ + + + + >수정
자료가 없습니다.
+
+ +
+
+ +
+ + + + diff --git a/adm/shop_admin/optionstocklistupdate.php b/adm/shop_admin/optionstocklistupdate.php new file mode 100644 index 000000000..e6401f4cb --- /dev/null +++ b/adm/shop_admin/optionstocklistupdate.php @@ -0,0 +1,22 @@ +