Changeset 17376


Ignore:
Timestamp:
2008/06/26 23:49:45 (13 years ago)
Author:
x41
Message:

ステータスを発送済み後にポイントが付与されるように修正

Location:
branches/comu-ver2/data/class/pages
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/pages/admin/order/LC_Page_Admin_Order_Status.php

    r17296 r17376  
    159159        $where = 'order_id = ?'; 
    160160        $arrUpdate = array('update_date' => 'NOW()'); 
     161    $col = 'customer_id, add_point'; 
    161162 
    162163        $delflg  = '1'; // 削除フラグ 
     
    181182            foreach ( $arrMove as $val ){ 
    182183                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        } 
    183195                    $objQuery->update($table, $arrUpdate, $where, array($val)); 
    184196                } 
  • branches/comu-ver2/data/class/pages/shopping/LC_Page_Shopping_Complete.php

    r17352 r17376  
    624624        $sqlval['buy_times']++; 
    625625        $sqlval['buy_total']+= $arrData['total']; 
    626         $sqlval['point'] = ($sqlval['point'] + $arrData['add_point'] - $arrData['use_point']); 
     626        $sqlval['point'] = ($sqlval['point'] - $arrData['use_point']); 
    627627 
    628628        // ポイントが不足している場合 
Note: See TracChangeset for help on using the changeset viewer.