diff --git a/adm/shop_admin/itemform.php b/adm/shop_admin/itemform.php
index 6e7cc0f43..acaab2cf7 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 = '전체목록
from {$g5['g5_shop_cart_table']}
where it_id = '{$row['it_id']}'
and ct_stock_use = '0'
- and ct_status in ('주문', '준비') ";
+ and ct_status in ('주문', '입금', '준비') ";
$row1 = sql_fetch($sql1);
$wait_qty = $row1['sum_qty'];
}
@@ -143,6 +144,14 @@ $listall = '전체목록
// 가재고 (미래재고)
$temporary_qty = $row['it_stock_qty'] - $wait_qty;
+ // 통보수량보다 재고수량이 작을 때
+ $it_stock_qty = number_format($row['it_stock_qty']);
+ $it_stock_qty_st = ''; // 스타일 정의
+ if($row['it_stock_qty'] <= $row['it_noti_qty']) {
+ $it_stock_qty_st = ' sit_stock_qty_alert';
+ $it_stock_qty = ''.$it_stock_qty.' ! 재고부족 ';
+ }
+
$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 = '전체목록
- 전체 상품 개
+ 전체 옵션 개