Changeset 19680 for branches/version-2_5-dev/data/class/pages
- Timestamp:
- 2010/11/24 05:30:01 (16 years ago)
- Location:
- branches/version-2_5-dev/data/class/pages
- Files:
-
- 5 edited
-
admin/order/LC_Page_Admin_Order_Edit.php (modified) (1 diff)
-
cart/LC_Page_Cart.php (modified) (3 diffs)
-
rss/LC_Page_Rss_Products.php (modified) (2 diffs)
-
shopping/LC_Page_Shopping_Confirm.php (modified) (1 diff)
-
shopping/LC_Page_Shopping_Payment.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php
r19674 r19680 487 487 for($i = 0; $i < $max; $i++) { 488 488 // 小計の計算 489 $subtotal += SC_Helper_DB_Ex::sf PreTax($arrVal['price'][$i]) * $arrVal['quantity'][$i];489 $subtotal += SC_Helper_DB_Ex::sfCalcIncTax($arrVal['price'][$i]) * $arrVal['quantity'][$i]; 490 490 // 小計の計算 491 491 $totaltax += SC_Helper_DB_Ex::sfTax($arrVal['price'][$i]) * $arrVal['quantity'][$i]; -
branches/version-2_5-dev/data/class/pages/cart/LC_Page_Cart.php
r19670 r19680 148 148 // カート集計処理 149 149 $this->tpl_message = $objCartSess->checkProducts($key); 150 $this->tpl_total_ pretax[$key] = $objCartSess->getAllProductsTotal($key);150 $this->tpl_total_inctax[$key] = $objCartSess->getAllProductsTotal($key); 151 151 $this->tpl_total_tax[$key] = $objCartSess->getAllProductsTax($key); 152 152 // ポイント合計 … … 155 155 156 156 // 送料無料までの金額を計算 157 $this->tpl_deliv_free[$key] = $this->arrInfo['free_rule'] - $this->tpl_total_ pretax[$key];157 $this->tpl_deliv_free[$key] = $this->arrInfo['free_rule'] - $this->tpl_total_inctax[$key]; 158 158 } 159 159 … … 291 291 292 292 // 送料無料までの金額を計算 293 $tpl_deliv_free = $this->arrInfo['free_rule'] - $this->tpl_total_ pretax;293 $tpl_deliv_free = $this->arrInfo['free_rule'] - $this->tpl_total_inctax; 294 294 $this->tpl_deliv_free = $tpl_deliv_free; 295 295 -
branches/version-2_5-dev/data/class/pages/rss/LC_Page_Rss_Products.php
r18815 r19680 73 73 foreach($arrProduct as $key => $val){ 74 74 //販売価格を税込みに編集 75 $arrProduct[$key]["price02"] = SC_Helper_DB_Ex::sf PreTax($arrProduct[$key]["price02"]);75 $arrProduct[$key]["price02"] = SC_Helper_DB_Ex::sfCalcIncTax($arrProduct[$key]["price02"]); 76 76 77 77 // 画像ファイルのURLセット … … 98 98 foreach($arrProduct as $key => $val){ 99 99 //販売価格を税込みに編集 100 $arrProduct[$key]["price02_max"] = SC_Helper_DB_Ex::sf PreTax($arrProduct[$key]["price02_max"]);101 $arrProduct[$key]["price02_min"] = SC_Helper_DB_Ex::sf PreTax($arrProduct[$key]["price02_min"]);100 $arrProduct[$key]["price02_max"] = SC_Helper_DB_Ex::sfCalcIncTax($arrProduct[$key]["price02_max"]); 101 $arrProduct[$key]["price02_min"] = SC_Helper_DB_Ex::sfCalcIncTax($arrProduct[$key]["price02_min"]); 102 102 103 103 // 画像ファイルのURLセット -
branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Confirm.php
r19670 r19680 103 103 $this->cartItems = $objCartSess->getCartList($this->cartKey); 104 104 // 合計金額 105 $this->tpl_total_ pretax[$this->cartKey] = $objCartSess->getAllProductsTotal($this->cartKey);105 $this->tpl_total_inctax[$this->cartKey] = $objCartSess->getAllProductsTotal($this->cartKey); 106 106 // 税額 107 107 $this->tpl_total_tax[$this->cartKey] = $objCartSess->getAllProductsTax($this->cartKey); -
branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Payment.php
r19670 r19680 173 173 174 174 // 購入金額の取得 175 $total_ pretax = $objCartSess->getAllProductsTotal($this->cartKey);175 $total_inctax = $objCartSess->getAllProductsTotal($this->cartKey); 176 176 // 支払い方法の取得 177 $this->arrPayment = $this->lfGetPayment($total_ pretax);177 $this->arrPayment = $this->lfGetPayment($total_inctax); 178 178 // 支払い方法の画像があるなしを取得($img_show true:ある false:なし) 179 179 $this->img_show = $this->lfGetImgShow($this->arrPayment); … … 340 340 341 341 // 購入金額の取得得 342 $total_ pretax = $objCartSess->getAllProductsTotal();342 $total_inctax = $objCartSess->getAllProductsTotal(); 343 343 // 支払い方法の取得 344 $this->arrPayment = $this->lfGetPayment($total_ pretax);344 $this->arrPayment = $this->lfGetPayment($total_inctax); 345 345 // お届け時間の取得 346 346 $arrRet = $objDb->sfGetDelivTime($this->objFormParam->getValue('payment_id')); … … 372 372 } 373 373 374 function lfGetPayment($total_ pretax) {374 function lfGetPayment($total_inctax) { 375 375 $objQuery = new SC_Query(); 376 376 $objQuery->setOrder("rank DESC"); … … 409 409 // 下限と上限が設定されている 410 410 if (strlen($data['rule']) != 0 && strlen($data['upper_rule']) != 0) { 411 if ($data['rule'] <= $total_ pretax && $data['upper_rule'] >= $total_pretax) {411 if ($data['rule'] <= $total_inctax && $data['upper_rule'] >= $total_inctax) { 412 412 $arrPayment[] = $data; 413 413 } … … 415 415 // 下限のみ設定されている 416 416 elseif (strlen($data['rule']) != 0) { 417 if($data['rule'] <= $total_ pretax) {417 if($data['rule'] <= $total_inctax) { 418 418 $arrPayment[] = $data; 419 419 } … … 421 421 // 上限のみ設定されている 422 422 elseif (strlen($data['upper_rule']) != 0) { 423 if($data['upper_rule'] >= $total_ pretax) {423 if($data['upper_rule'] >= $total_inctax) { 424 424 $arrPayment[] = $data; 425 425 } … … 465 465 $objCartSess = new SC_CartSession(); 466 466 // 購入金額の取得得 467 $total_ pretax = $objCartSess->getAllProductsTotal();467 $total_inctax = $objCartSess->getAllProductsTotal(); 468 468 // 支払い方法の取得 469 $arrPayment = $this->lfGetPayment($total_ pretax);469 $arrPayment = $this->lfGetPayment($total_inctax); 470 470 $pay_flag = true; 471 471 foreach ($arrPayment as $key => $payment) {
Note: See TracChangeset
for help on using the changeset viewer.
