Changeset 19674
- Timestamp:
- 2010/11/17 16:17:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php
r19670 r19674 426 426 $arrRet = $objQuery->select("*", "dtb_order", $where, array($order_id)); 427 427 $this->objFormParam->setParam($arrRet[0]); 428 list($point, $total_point) = $objDb->sfGetCustomerPoint($order_id, $arrRet[0]['use_point'], $arrRet[0]['add_point']);429 $this->objFormParam->setValue('total_point', $ total_point);430 $this->objFormParam->setValue('point', $ point);428 list($db_point, $rollback_point) = $objDb->sfGetRollbackPoint($order_id, $arrRet[0]['use_point'], $arrRet[0]['add_point']); 429 $this->objFormParam->setValue('total_point', $db_point); 430 $this->objFormParam->setValue('point', $rollback_point); 431 431 $this->arrForm = $arrRet[0]; 432 432 … … 505 505 // 加算ポイント 506 506 $arrVal['add_point'] = SC_Helper_DB_Ex::sfGetAddPoint($totalpoint, $arrVal['use_point']); 507 508 if (strlen($_POST['customer_id']) > 0){ 509 list($arrVal['point'], $arrVal['total_point']) = $objDb->sfGetCustomerPointFromCid($_POST['customer_id'], $arrVal['use_point'], $arrVal['add_point']); 510 }else{ 511 list($arrVal['point'], $arrVal['total_point']) = $objDb->sfGetCustomerPoint($_POST['order_id'], $arrVal['use_point'], $arrVal['add_point']); 512 } 507 508 // 最終保持ポイント 509 $arrVal['total_point'] = $this->objFormParam->getValue('point') - $arrVal['use_point'] + $arrVal['add_point']; 510 513 511 if ($arrVal['total'] < 0) { 514 512 $arrErr['total'] = '合計額がマイナス表示にならないように調整して下さい。<br />';
Note: See TracChangeset
for help on using the changeset viewer.