Class Mage_Tax_Model_Sales_Total_Quote_Shipping

Description

Magento

NOTICE OF LICENSE

This source file is subject to the Open Software License (OSL 3.0) that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://opensource.org/licenses/osl-3.0.php If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@magentocommerce.com so we can send you a copy immediately.

DISCLAIMER

Do not edit or add to this file if you wish to upgrade Magento to newer versions in the future. If you wish to customize Magento for your needs please refer to http://www.magentocommerce.com for more information.

Located in /Tax/Model/Sales/Total/Quote/Shipping.php (line 28)

Mage_Sales_Model_Quote_Address_Total_Abstract
   |
   --Mage_Tax_Model_Sales_Total_Quote_Shipping
Variable Summary
Method Summary
Mage_Tax_Model_Sales_Total_Quote_Shipping __construct ()
float _round (float $price, string $rate, bool $direction, [string $type = 'regular'])
Variables
bool $_areTaxRequestsSimilar = false (line 50)

Flag which is initialized when collect method is started and catalog prices include tax.

It is used for checking if store tax and customer tax requests are similar

  • access: protected
Mage_Tax_Model_Calculation $_calculator = null (line 35)

Tax calculation model

  • access: protected
Mage_Tax_Model_Config $_config = null (line 42)

Tax configuration object

  • access: protected
Varien_Object $_storeTaxRequest = null (line 57)

Request which can be used for tax rate calculation

  • access: protected

Inherited Variables

Inherited from Mage_Sales_Model_Quote_Address_Total_Abstract

Mage_Sales_Model_Quote_Address_Total_Abstract::$_address
Mage_Sales_Model_Quote_Address_Total_Abstract::$_canAddAmountToAddress
Mage_Sales_Model_Quote_Address_Total_Abstract::$_canSetAddressAmount
Mage_Sales_Model_Quote_Address_Total_Abstract::$_code
Mage_Sales_Model_Quote_Address_Total_Abstract::$_itemRowTotalKey
Methods
Constructor __construct (line 62)

Class constructor

  • access: public
Mage_Tax_Model_Sales_Total_Quote_Shipping __construct ()
collect (line 75)

Collect totals information about shipping

  • access: public

Redefinition of:
Mage_Sales_Model_Quote_Address_Total_Abstract::collect()
Collect totals process.
_getAddressTaxRequest (line 204)

Get request for fetching address tax rate

  • deprecated: after 1.4.0.0
  • access: protected
Varien_Object _getAddressTaxRequest (Mage_Sales_Model_Quote_Address $address)
_getStoreTaxRequest (line 189)

Get request for fetching store tax rate

  • deprecated: after 1.4.0.0
  • access: protected
Varien_Object _getStoreTaxRequest (Mage_Sales_Model_Quote_Address $address)
_needSubtractShippingTax (line 222)

Check if we need subtract store tax amount from shipping

  • deprecated: after 1.4.0.0
  • access: protected
bool _needSubtractShippingTax (Mage_Sales_Model_Quote_Address $address)
_processShippingAmount (line 238)

Calculate shipping price without store tax

  • deprecated: after 1.4.0.0
  • access: protected
_round (line 157)

Round price based on tax rounding settings

  • access: protected
float _round (float $price, string $rate, bool $direction, [string $type = 'regular'])
  • float $price
  • string $rate
  • bool $direction
  • string $type

Inherited Methods

Inherited From Mage_Sales_Model_Quote_Address_Total_Abstract

Mage_Sales_Model_Quote_Address_Total_Abstract::collect()
Mage_Sales_Model_Quote_Address_Total_Abstract::fetch()
Mage_Sales_Model_Quote_Address_Total_Abstract::getCode()
Mage_Sales_Model_Quote_Address_Total_Abstract::getIsItemRowTotalCompoundable()
Mage_Sales_Model_Quote_Address_Total_Abstract::getItemBaseRowTotal()
Mage_Sales_Model_Quote_Address_Total_Abstract::getItemRowTotal()
Mage_Sales_Model_Quote_Address_Total_Abstract::getLabel()
Mage_Sales_Model_Quote_Address_Total_Abstract::processConfigArray()
Mage_Sales_Model_Quote_Address_Total_Abstract::setCode()
Mage_Sales_Model_Quote_Address_Total_Abstract::_addAmount()
Mage_Sales_Model_Quote_Address_Total_Abstract::_addBaseAmount()
Mage_Sales_Model_Quote_Address_Total_Abstract::_getAddress()
Mage_Sales_Model_Quote_Address_Total_Abstract::_getAddressItems()
Mage_Sales_Model_Quote_Address_Total_Abstract::_setAddress()
Mage_Sales_Model_Quote_Address_Total_Abstract::_setAmount()
Mage_Sales_Model_Quote_Address_Total_Abstract::_setBaseAmount()

Documentation generated on Fri, 11 Feb 2011 17:12:49 +0200 by phpDocumentor 1.4.3