- Timestamp:
- 2008/06/26 23:49:45 (16 years ago)
- File:
-
- 1 edited
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 }
Note: See TracChangeset
for help on using the changeset viewer.