diff --git a/adm/shop_admin/itemform.php b/adm/shop_admin/itemform.php index 3b0919f68..afb7ffa75 100644 --- a/adm/shop_admin/itemform.php +++ b/adm/shop_admin/itemform.php @@ -494,6 +494,19 @@ $(function(){ + + + + 옵션이 있는 상품은 개별 옵션의 통보수량이 적용됩니다."); ?> + 개 + + + + + + + + diff --git a/adm/shop_admin/itemformupdate.php b/adm/shop_admin/itemformupdate.php index 435a558c0..003570b87 100644 --- a/adm/shop_admin/itemformupdate.php +++ b/adm/shop_admin/itemformupdate.php @@ -288,6 +288,7 @@ $sql_common = " ca_id = '$ca_id', it_sell_email = '$it_sell_email', it_use = '$it_use', it_stock_qty = '$it_stock_qty', + it_noti_qty = '$it_noti_qty', it_sc_type = '$it_sc_type', it_sc_method = '$it_sc_method', it_sc_price = '$it_sc_price', @@ -462,6 +463,7 @@ if(is_checked('chk_ca_it_cust_price')) $ca_fields .= " , it_cust_price if(is_checked('chk_ca_it_point')) $ca_fields .= " , it_point = '$it_point' "; if(is_checked('chk_ca_it_point_type')) $ca_fields .= " , it_point_type = '$it_point_type' "; if(is_checked('chk_ca_it_stock_qty')) $ca_fields .= " , it_stock_qty = '$it_stock_qty' "; +if(is_checked('chk_ca_it_noti_qty')) $ca_fields .= " , it_noti_qty = '$it_noti_qty' "; if(is_checked('chk_ca_it_sendcost')) $ca_fields .= " , it_sc_type = '$it_sc_type', it_sc_method = '$it_sc_method', it_sc_price = '$it_sc_price', it_sc_minimum = '$it_sc_minimum', it_sc_qty = '$it_sc_qty' "; if(is_checked('chk_ca_it_buy_min_qty')) $ca_fields .= " , it_buy_min_qty = '$it_buy_min_qty' "; if(is_checked('chk_ca_it_buy_max_qty')) $ca_fields .= " , it_buy_max_qty = '$it_buy_max_qty' "; @@ -506,6 +508,7 @@ if(is_checked('chk_all_it_cust_price')) $all_fields .= " , it_cust_pric if(is_checked('chk_all_it_point')) $all_fields .= " , it_point = '$it_point' "; if(is_checked('chk_all_it_point_type')) $all_fields .= " , it_point_type = '$it_point_type' "; if(is_checked('chk_all_it_stock_qty')) $all_fields .= " , it_stock_qty = '$it_stock_qty' "; +if(is_checked('chk_all_it_noti_qty')) $all_fields .= " , it_noti_qty = '$it_noti_qty' "; if(is_checked('chk_all_it_sendcost')) $all_fields .= " , it_sc_type = '$it_sc_type', it_sc_method = '$it_sc_method', it_sc_price = '$it_sc_price', it_sc_minimum = '$it_sc_minimum', it_sc_qty = '$it_sc_qty' "; if(is_checked('chk_all_it_buy_min_qty')) $all_fields .= " , it_buy_min_qty = '$it_buy_min_qty' "; if(is_checked('chk_all_it_buy_max_qty')) $all_fields .= " , it_buy_max_qty = '$it_buy_max_qty' "; diff --git a/adm/shop_admin/itemstocklist.php b/adm/shop_admin/itemstocklist.php index 15b634e19..a00d7f274 100644 --- a/adm/shop_admin/itemstocklist.php +++ b/adm/shop_admin/itemstocklist.php @@ -19,8 +19,8 @@ if ($sel_ca_id != "") { } if ($sel_field == "") $sel_field = "it_name"; -if ($sort1 == "") $sort1 = "it_id"; -if ($sort2 == "") $sort2 = "desc"; +if ($sort1 == "") $sort1 = "it_stock_qty"; +if ($sort2 == "") $sort2 = "asc"; $sql_common = " from {$g5['g5_shop_item_table']} "; $sql_common .= $sql_search; @@ -38,7 +38,8 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함 $sql = " select it_id, it_name, it_use, - it_stock_qty + it_stock_qty, + it_noti_qty $sql_common order by $sort1 $sort2 limit $from_record, $rows "; @@ -135,7 +136,7 @@ $listall = '전체목록전체목록 재고부족 '; + } + $tr_bg = 'tr_bg'.($i%2); ?> @@ -152,7 +161,7 @@ $listall = '전체목록 - + diff --git a/adm/shop_admin/itemstocklistupdate.php b/adm/shop_admin/itemstocklistupdate.php index c1f78b498..ad8f379dc 100644 --- a/adm/shop_admin/itemstocklistupdate.php +++ b/adm/shop_admin/itemstocklistupdate.php @@ -16,5 +16,5 @@ for ($i=0; $i diff --git a/adm/shop_admin/optionstocklist.php b/adm/shop_admin/optionstocklist.php index 59e916faa..8eb5f6069 100644 --- a/adm/shop_admin/optionstocklist.php +++ b/adm/shop_admin/optionstocklist.php @@ -56,7 +56,7 @@ $listall = '전체목록 - 전체 상품 개 + 전체 옵션
@@ -132,7 +132,7 @@ $listall = '전체목록전체목록 재고부족 '; } @@ -179,7 +179,7 @@ $listall = '전체목록 - + diff --git a/adm/shop_admin/optionstocklistupdate.php b/adm/shop_admin/optionstocklistupdate.php index 0297d832d..749ad8949 100644 --- a/adm/shop_admin/optionstocklistupdate.php +++ b/adm/shop_admin/optionstocklistupdate.php @@ -18,5 +18,5 @@ for ($i=0; $i diff --git a/extend/shop.extend2.php b/extend/shop.extend2.php index 65a2e466f..a71c1e6cf 100644 --- a/extend/shop.extend2.php +++ b/extend/shop.extend2.php @@ -685,4 +685,10 @@ if(!sql_query(" select od_cash_info from {$g5['g5_shop_order_table']} limit 1", DROP `od_cash_tr_code`, DROP `od_cash_id_info` ", true); } + +// 상품테이블 재고통보수량 필드 추가 +if(!sql_query(" select it_noti_qty from {$g5['g5_shop_item_table']} limit 1 ", false)) { + sql_query(" ALTER TABLE `{$g5['g5_shop_item_table']}` + ADD `it_noti_qty` int(11) NOT NULL DEFAULT '0' AFTER `it_stock_qty` ", true); +} ?> diff --git a/install/gnuboard5shop.sql b/install/gnuboard5shop.sql index 4b4867ff2..a991d1f5f 100644 --- a/install/gnuboard5shop.sql +++ b/install/gnuboard5shop.sql @@ -423,6 +423,7 @@ CREATE TABLE IF NOT EXISTS `g5_shop_item` ( `it_sell_email` varchar(255) NOT NULL DEFAULT '', `it_use` tinyint(4) NOT NULL DEFAULT '0', `it_stock_qty` int(11) NOT NULL DEFAULT '0', + `it_noti_qty` int(11) NOT NULL DEFAULT '0', `it_sc_type` tinyint(4) NOT NULL DEFAULT '0', `it_sc_method` tinyint(4) NOT NULL DEFAULT '0', `it_sc_price` int(11) NOT NULL DEFAULT '0', diff --git a/shop/orderinquirycancel.php b/shop/orderinquirycancel.php index 61944b707..309ebd7b6 100644 --- a/shop/orderinquirycancel.php +++ b/shop/orderinquirycancel.php @@ -75,6 +75,7 @@ $sql = " update {$g5['g5_shop_order_table']} od_cart_coupon = '0', od_coupon = '0', od_send_coupon = '0', + od_status = '취소', od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - ".G5_TIME_YMDHIS." (취소이유 : {$cancel_memo})\") where od_id = '$od_id' "; sql_query($sql);