Changeset 21068


Ignore:
Timestamp:
2011/07/28 13:37:56 (9 years ago)
Author:
habu
Message:

#1360 受注編集画面で商品変更時に使用ポイントエラー

r20981 をロールバックし、#1360 を再修正。

Location:
branches/version-2_11-dev/data/class
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/helper/SC_Helper_DB.php

    r21039 r21068  
    209209            $arrRet = $objQuery->select('point', "dtb_customer", "customer_id = ?", array($customer_id)); 
    210210            $point = $arrRet[0]['point']; 
    211             $rollback_point = $arrRet[0]['point'] + $use_point - $add_point; 
     211            $rollback_point = $arrRet[0]['point'] + $use_point; 
    212212        } else { 
    213213            $rollback_point = ""; 
  • branches/version-2_11-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php

    r21036 r21068  
    589589 
    590590        // 最終保持ポイント 
    591         $arrValues['total_point'] = $objFormParam->getValue('customer_point') - $arrValues['use_point']; 
     591        $arrValues['total_point'] = $objFormParam->getValue('point') - $arrValues['use_point'] + $arrValues['add_point']; 
    592592 
    593593        if ($arrValues['total'] < 0) { 
Note: See TracChangeset for help on using the changeset viewer.