Changeset 17376
- Timestamp:
- 2008/06/26 23:49:45 (18 years ago)
- Location:
- branches/comu-ver2/data/class/pages
- Files:
-
- 2 edited
-
admin/order/LC_Page_Admin_Order_Status.php (modified) (2 diffs)
-
shopping/LC_Page_Shopping_Complete.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/pages/admin/order/LC_Page_Admin_Order_Status.php
r17296 r17376 159 159 $where = 'order_id = ?'; 160 160 $arrUpdate = array('update_date' => 'NOW()'); 161 $col = 'customer_id, add_point'; 161 162 162 163 $delflg = '1'; // 削除フラグ … … 181 182 foreach ( $arrMove as $val ){ 182 183 if ( $val != "" ) { 184 if ( $status_id == ORDER_DELIV ) { 185 $arrRet = $objQuery->select($col, $table, $where, array($val)); 186 $customer_id = $arrRet[0]['customer_id']; 187 $add_point = $arrRet[0]['add_point']; 188 if($customer_id != "" && $customer_id >= 1) { 189 $arrRet = $objQuery->select("point", 'dtb_customer', 'customer_id = ?', array($customer_id)); 190 $arrRet[0]['point']+= $add_point; 191 $sqlval['point'] = $arrRet[0]['point']; 192 $objQuery->update('dtb_customer', $sqlval, 'customer_id = ?', array($customer_id)); 193 } 194 } 183 195 $objQuery->update($table, $arrUpdate, $where, array($val)); 184 196 } -
branches/comu-ver2/data/class/pages/shopping/LC_Page_Shopping_Complete.php
r17352 r17376 624 624 $sqlval['buy_times']++; 625 625 $sqlval['buy_total']+= $arrData['total']; 626 $sqlval['point'] = ($sqlval['point'] + $arrData['add_point']- $arrData['use_point']);626 $sqlval['point'] = ($sqlval['point'] - $arrData['use_point']); 627 627 628 628 // ポイントが不足している場合
Note: See TracChangeset
for help on using the changeset viewer.
