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

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

File:
1 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                } 
Note: See TracChangeset for help on using the changeset viewer.