Example #1
0
 /**
  * Check if price include tax should be used for calculations.
  * We are using price include tax just in case when catalog prices are including tax
  * and customer tax request is same as store tax request
  *
  * @param $store
  * @return bool
  */
 protected function _usePriceIncludeTax($store)
 {
     if ($this->_config->priceIncludesTax($store) || $this->_config->getNeedUsePriceExcludeTax()) {
         return $this->_areTaxRequestsSimilar;
     }
     return false;
 }
 /**
  * Check if we need subtract store tax amount from item prices
  *
  * @deprecated after 1.4.1
  *
  * @param Mage_Sales_Model_Quote_Address $address
  *
  * @return bool
  */
 protected function _needSubtractTax($address)
 {
     $store = $address->getQuote()->getStore();
     if ($this->_config->priceIncludesTax($store) || $this->_config->getNeedUsePriceExcludeTax()) {
         return true;
     }
     return false;
 }