- Timestamp:
- 2009/06/06 03:19:45 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php
r18037 r18052 32 32 /* ペイジェント決済モジュール連携用 */ 33 33 if (file_exists(MODULE_PATH . 'mdl_paygent/include.php') === TRUE) { 34 34 require_once(MODULE_PATH . 'mdl_paygent/include.php'); 35 35 } 36 36 … … 109 109 $objView = new SC_AdminView(); 110 110 $objSess = new SC_Session(); 111 $objSiteInfo = new SC_SiteInfo();112 111 $objDb = new SC_Helper_DB_Ex(); 113 $arrInfo = $objSiteInfo->data;114 112 115 113 // パラメータ管理クラス … … 152 150 // 入力値の変換 153 151 $this->objFormParam->convParam(); 154 $this->arrErr = $this->lfCheek( $arrInfo);152 $this->arrErr = $this->lfCheek(); 155 153 $this->arrErr = $this->lfCheckError(); 156 154 if(count($this->arrErr) == 0) { … … 177 175 $this->arrErr = $this->lfCheckError(); 178 176 #if(count($this->arrErr) == 0) { 179 $this->arrErr = $this->lfCheek( $arrInfo);177 $this->arrErr = $this->lfCheek(); 180 178 #} 181 179 break; … … 198 196 } 199 197 } 200 $this->lfReCheek($arrData , $arrInfo);198 $this->lfReCheek($arrData); 201 199 break; 202 200 /* 商品追加ポップアップより商品選択後、商品情報取得*/ … … 217 215 } 218 216 } 219 $this->lfReCheek($arrData , $arrInfo);217 $this->lfReCheek($arrData); 220 218 break; 221 219 /* F-REGI決済モジュール連携用 */ … … 275 273 $this->tpl_onload .= $anchor_hash; 276 274 277 $this->arrInfo = $arrInfo; 275 $objSiteInfo = new SC_SiteInfo(); 276 $this->arrInfo = $objSiteInfo->data; 278 277 279 278 /** … … 430 429 431 430 /* 計算処理 */ 432 function lfCheek( $arrInfo) {431 function lfCheek() { 433 432 $objDb = new SC_Helper_DB_Ex(); 434 433 $arrVal = $this->objFormParam->getHashArray(); … … 442 441 for($i = 0; $i < $max; $i++) { 443 442 // 小計の計算 444 $subtotal += SC_ Utils_Ex::sfPreTax($arrVal['price'][$i], $arrInfo['tax'], $arrInfo['tax_rule']) * $arrVal['quantity'][$i];443 $subtotal += SC_Helper_DB_Ex::sfPreTax($arrVal['price'][$i]) * $arrVal['quantity'][$i]; 445 444 // 小計の計算 446 $totaltax += SC_ Utils_Ex::sfTax($arrVal['price'][$i], $arrInfo['tax'], $arrInfo['tax_rule']) * $arrVal['quantity'][$i];445 $totaltax += SC_Helper_DB_Ex::sfTax($arrVal['price'][$i]) * $arrVal['quantity'][$i]; 447 446 // 加算ポイントの計算 448 447 $totalpoint += SC_Utils_Ex::sfPrePoint($arrVal['price'][$i], $arrVal['point_rate'][$i]) * $arrVal['quantity'][$i]; … … 459 458 460 459 // 加算ポイント 461 $arrVal['add_point'] = SC_ Utils_Ex::sfGetAddPoint($totalpoint, $arrVal['use_point'], $arrInfo);460 $arrVal['add_point'] = SC_Helper_DB_Ex::sfGetAddPoint($totalpoint, $arrVal['use_point']); 462 461 463 462 list($arrVal['point'], $arrVal['total_point']) = $objDb->sfGetCustomerPoint($_POST['order_id'], $arrVal['use_point'], $arrVal['add_point']); … … 479 478 } 480 479 481 function lfReCheek($arrData , $arrInfo) {480 function lfReCheek($arrData) { 482 481 // 情報上書き 483 482 $this->objFormParam->setParam($arrData); … … 485 484 $this->objFormParam->convParam(); 486 485 #if(count($this->arrErr) == 0) { 487 $this->arrErr = $this->lfCheek( $arrInfo);486 $this->arrErr = $this->lfCheek(); 488 487 #} 489 488 $this->arrErr = $this->lfCheckError();
Note: See TracChangeset
for help on using the changeset viewer.