Ignore:
Timestamp:
2010/11/24 05:30:01 (16 years ago)
Author:
Seasoft
Message:

#627(ソース整形・ソースコメントの改善)

  • 「pretax」は収入に関する税込みを意味する英単語だと思いますので、より適切と考えられる「including tax」を基にした単語「inctax」に書き換えます。またメソッド名としては「calculate」を基にした「calc」を前置するように改めます。英文法・命名規則的に正しいか確信はないのですが少なくとも現状よりは理想に近づくと考えます。
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/cart/LC_Page_Cart.php

    r19670 r19680  
    148148            // カート集計処理 
    149149            $this->tpl_message = $objCartSess->checkProducts($key); 
    150             $this->tpl_total_pretax[$key] = $objCartSess->getAllProductsTotal($key); 
     150            $this->tpl_total_inctax[$key] = $objCartSess->getAllProductsTotal($key); 
    151151            $this->tpl_total_tax[$key] = $objCartSess->getAllProductsTax($key); 
    152152            // ポイント合計 
     
    155155 
    156156            // 送料無料までの金額を計算 
    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]; 
    158158        } 
    159159 
     
    291291 
    292292        // 送料無料までの金額を計算 
    293         $tpl_deliv_free = $this->arrInfo['free_rule'] - $this->tpl_total_pretax; 
     293        $tpl_deliv_free = $this->arrInfo['free_rule'] - $this->tpl_total_inctax; 
    294294        $this->tpl_deliv_free = $tpl_deliv_free; 
    295295 
Note: See TracChangeset for help on using the changeset viewer.