/** * Init gift wrapping and printed card tax rate for address * * @param Mage_Sales_Model_Quote_Address $address * @return Enterprise_GiftWrapping_Model_Total_Quote_Tax_Giftwrapping */ protected function _initRate($address) { $store = $address->getQuote()->getStore(); $billingAddress = $address->getQuote()->getBillingAddress(); $custTaxClassId = $address->getQuote()->getCustomerTaxClassId(); $this->_request = $this->_taxCalculationModel->getRateRequest($address, $billingAddress, $custTaxClassId, $store); $this->_request->setProductClassId($this->_helper->getWrappingTaxClass($store)); $this->_rate = $this->_taxCalculationModel->getRate($this->_request); return $this; }
/** * Check ability to display both prices for printed card in backend sales * * @param Mage_Core_Model_Store|int $store * @return bool */ public function displaySalesCardBothPrices($store = null) { if ($this->_getDataHelper()->isAvataxEnabled($store)) { return false; } return parent::displaySalesCardBothPrices($store); }