Ignore:
Timestamp:
2013/01/08 21:31:00 (11 years ago)
Author:
h_yoshimoto
Message:

#1730 税率変更対応の差し戻し

Location:
branches/version-2_12-dev/data/class
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/SC_CartSession.php

    r22206 r22215  
    626626        $results['deliv_fee'] = 0; 
    627627 
    628         $arrInfo = SC_Helper_DB_Ex::sfGetBasisData(); 
    629         $results['order_tax_rate'] = $arrInfo['tax']; 
    630         $results['order_tax_rule'] = $arrInfo['tax_rule']; 
    631  
    632628        // 商品ごとの送料を加算 
    633629        if (OPTION_PRODUCT_DELIV_FEE == 1) { 
  • branches/version-2_12-dev/data/class/SC_Fpdf.php

    r22206 r22215  
    178178 
    179179            // 税込金額(単価) 
    180             $data[1] = SC_Helper_DB_Ex::sfCalcIncTax($this->arrDisp['price'][$i], $this->arrDisp['tax_rate'][$i], $this->arrDisp['tax_rule'][$i]); 
     180            $data[1] = SC_Helper_DB_Ex::sfCalcIncTax($this->arrDisp['price'][$i]); 
    181181 
    182182            // 小計(商品毎) 
     
    331331    function lfGetOrderDetail($order_id) { 
    332332        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    333         $col = 'product_id, product_class_id, product_code, product_name, classcategory_name1, classcategory_name2, price, quantity, point_rate, tax_rate, tax_rule'; 
     333        $col = 'product_id, product_class_id, product_code, product_name, classcategory_name1, classcategory_name2, price, quantity, point_rate'; 
    334334        $where = 'order_id = ?'; 
    335335        $objQuery->setOrder('order_detail_id'); 
  • branches/version-2_12-dev/data/class/helper/SC_Helper_DB.php

    r22206 r22215  
    14101410        // 店舗基本情報を取得 
    14111411        $CONF = SC_Helper_DB_Ex::sfGetBasisData(); 
    1412         $tax      = $tax      === null ? $CONF['tax']      : $tax; 
    1413         $tax_rule = $tax_rule === null ? $CONF['tax_rule'] : $tax_rule; 
    1414  
    1415         return SC_Utils_Ex::sfCalcIncTax($price, $tax, $tax_rule); 
     1412 
     1413        return SC_Utils_Ex::sfCalcIncTax($price, $CONF['tax'], $CONF['tax_rule']); 
    14161414    } 
    14171415 
  • branches/version-2_12-dev/data/class/helper/SC_Helper_Purchase.php

    r22206 r22215  
    857857            $arrDetail[$i]['price'] = $item['price']; 
    858858            $arrDetail[$i]['quantity'] = $item['quantity']; 
    859             $arrDetail[$i]['tax_rate'] = $orderParams['order_tax_rate']; 
    860             $arrDetail[$i]['tax_rule'] = $orderParams['order_tax_rule']; 
    861859 
    862860            // 在庫の減少処理 
     
    995993            T2.quantity, 
    996994            T2.point_rate, 
    997             T2.tax_rate, 
    998             T2.tax_rule, 
    999995__EOS__; 
    1000996        if ($has_order_status) { 
  • branches/version-2_12-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Disp.php

    r22206 r22215  
    194194        $objFormParam->addParam('メモ', 'note', MTEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK')); 
    195195        $objFormParam->addParam('削除用項番', 'delete_no', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 
    196         $objFormParam->addParam('消費税率', 'tax_rate'); 
    197         $objFormParam->addParam('課税規則', 'tax_rule'); 
    198196 
    199197        // DB読込用 
  • branches/version-2_12-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php

    r22206 r22215  
    9898        $this->arrDeliv = SC_Helper_DB_Ex::sfGetIDValueList('dtb_deliv', 'deliv_id', 'name'); 
    9999 
    100         $this->arrInfo = SC_Helper_DB_Ex::sfGetBasisData(); 
    101  
    102100        $this->httpCacheControl('nocache'); 
    103101    } 
     
    263261        $this->arrDelivTime = $objPurchase->getDelivTime($objFormParam->getValue('deliv_id')); 
    264262        $this->tpl_onload .= $this->getAnchorKey($objFormParam); 
     263        $this->arrInfo = SC_Helper_DB_Ex::sfGetBasisData(); 
    265264        if ($arrValuesBefore['payment_id']) 
    266265            $this->arrPayment[$arrValuesBefore['payment_id']] = $arrValuesBefore['payment_method']; 
     
    331330        $objFormParam->addParam('規格名1', 'classcategory_name1'); 
    332331        $objFormParam->addParam('規格名2', 'classcategory_name2'); 
    333         $objFormParam->addParam('税率', 'tax_rate'); 
    334         $objFormParam->addParam('課税規則', 'tax_rule'); 
    335332        $objFormParam->addParam('メモ', 'note', MTEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK')); 
    336333        $objFormParam->addParam('削除用項番', 'delete_no', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 
     
    354351        $objFormParam->addParam('入金日', 'payment_date'); 
    355352        $objFormParam->addParam('端末種別', 'device_type_id'); 
    356         $objFormParam->addParam('税率', 'order_tax_rate'); 
    357         $objFormParam->addParam('課税規則', 'order_tax_rule'); 
    358353 
    359354        // 複数情報 
     
    582577        for ($i = 0; $i < $max; $i++) { 
    583578            // 小計の計算 
    584             $subtotal += SC_Helper_DB_Ex::sfCalcIncTax($arrValues['price'][$i], $arrValues['tax_rate'][$i], $arrValues['tax_rule'][$i]) * $arrValues['quantity'][$i]; 
     579            $subtotal += SC_Helper_DB_Ex::sfCalcIncTax($arrValues['price'][$i]) * $arrValues['quantity'][$i]; 
    585580            // 小計の計算 
    586             $totaltax += SC_Utils_Ex::sfTax($arrValues['price'][$i], $arrValues['tax_rate'][$i], $arrValues['tax_rule'][$i]) * $arrValues['quantity'][$i]; 
     581            $totaltax += SC_Helper_DB_Ex::sfTax($arrValues['price'][$i]) * $arrValues['quantity'][$i]; 
    587582            // 加算ポイントの計算 
    588583            $totalpoint += SC_Utils_Ex::sfPrePoint($arrValues['price'][$i], $arrValues['point_rate'][$i]) * $arrValues['quantity'][$i]; 
     
    677672                'classcategory_name1', 
    678673                'classcategory_name2', 
    679                 'tax_rate', 
    680                 'tax_rule' 
    681674        )); 
    682675 
     
    815808            $arrProduct['quantity'] = 1; 
    816809            $arrProduct['price'] = $arrProduct['price02']; 
    817             $arrProduct['tax_rate'] = $objFormParam->getValue('order_tax_rate') == '' ? $this->arrInfo['tax']      : $objFormParam->getValue('order_tax_rate'); 
    818             $arrProduct['tax_rule'] = $objFormParam->getValue('order_tax_rule') == '' ? $this->arrInfo['tax_rule'] : $objFormParam->getValue('order_tax_rule'); 
    819810            $arrProduct['product_name'] = $arrProduct['name']; 
    820811 
     
    822813                'product_id', 'product_class_id', 'product_type_id', 'point_rate', 
    823814                'product_code', 'product_name', 'classcategory_name1', 'classcategory_name2', 
    824                 'quantity', 'price', 'tax_rate', 'tax_rule' 
     815                'quantity', 'price', 
    825816            ); 
    826817            foreach ($arrUpdateKeys as $key) { 
     
    859850            'product_id', 'product_class_id', 'product_type_id', 'point_rate', 
    860851            'product_code', 'product_name', 'classcategory_name1', 'classcategory_name2', 
    861             'quantity', 'price', 'tax_rate', 'tax_rule' 
     852            'quantity', 'price', 
    862853        ); 
    863854        foreach ($arrDeleteKeys as $key) { 
Note: See TracChangeset for help on using the changeset viewer.