Ignore:
Timestamp:
2013/03/15 19:12:17 (11 years ago)
Author:
h_yoshimoto
Message:

#2193 税率チームのコミットをマージ(from camp/camp-2_13-tax)

Location:
branches/version-2_13-dev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev

  • branches/version-2_13-dev/data/class/SC_Product.php

    r22593 r22736  
    2929 * @version $Id$ 
    3030 */ 
    31 class SC_Product  
     31class SC_Product 
    3232{ 
    3333 
     
    304304                $arrClassCats2['price01'] 
    305305                    = strlen($arrProductsClass['price01']) 
    306                     ? number_format(SC_Helper_DB_Ex::sfCalcIncTax($arrProductsClass['price01'])) 
     306                    ? number_format(SC_Helper_TaxRule_Ex::sfCalcIncTax($arrProductsClass['price01'], $productId, $arrProductsClass['product_class_id'])) 
    307307                    : ''; 
    308308 
    309309                $arrClassCats2['price02'] 
    310310                    = strlen($arrProductsClass['price02']) 
    311                     ? number_format(SC_Helper_DB_Ex::sfCalcIncTax($arrProductsClass['price02'])) 
     311                    ? number_format(SC_Helper_TaxRule_Ex::sfCalcIncTax($arrProductsClass['price02'], $productId, $arrProductsClass['product_class_id'])) 
    312312                    : ''; 
    313313 
     
    611611    static function setIncTaxToProduct(&$arrProduct) 
    612612    { 
    613         $arrProduct['price01_min_inctax'] = isset($arrProduct['price01_min']) ? SC_Helper_DB_Ex::sfCalcIncTax($arrProduct['price01_min']) : null; 
    614         $arrProduct['price01_max_inctax'] = isset($arrProduct['price01_max']) ? SC_Helper_DB_Ex::sfCalcIncTax($arrProduct['price01_max']) : null; 
    615         $arrProduct['price02_min_inctax'] = isset($arrProduct['price02_min']) ? SC_Helper_DB_Ex::sfCalcIncTax($arrProduct['price02_min']) : null; 
    616         $arrProduct['price02_max_inctax'] = isset($arrProduct['price02_max']) ? SC_Helper_DB_Ex::sfCalcIncTax($arrProduct['price02_max']) : null; 
     613        $arrProduct['price01_min_inctax'] = isset($arrProduct['price01_min']) ? SC_Helper_TaxRule_Ex::sfCalcIncTax($arrProduct['price01_min'], $arrProduct['product_id']) : null; 
     614        $arrProduct['price01_max_inctax'] = isset($arrProduct['price01_max']) ? SC_Helper_TaxRule_Ex::sfCalcIncTax($arrProduct['price01_max'], $arrProduct['product_id']) : null; 
     615        $arrProduct['price02_min_inctax'] = isset($arrProduct['price02_min']) ? SC_Helper_TaxRule_Ex::sfCalcIncTax($arrProduct['price02_min'], $arrProduct['product_id']) : null; 
     616        $arrProduct['price02_max_inctax'] = isset($arrProduct['price02_max']) ? SC_Helper_TaxRule_Ex::sfCalcIncTax($arrProduct['price02_max'], $arrProduct['product_id']) : null; 
    617617    } 
    618618 
Note: See TracChangeset for help on using the changeset viewer.