Class Mage_Tax_Model_Sales_Total_Quote_Tax
Tax totals calculation model
- Mage_Sales_Model_Quote_Address_Total_Abstract
-
Mage_Tax_Model_Sales_Total_Quote_Tax
Direct known subclasses
Mage_Tax_Model_Sales_Total_Quote_Nominal_Tax, Mage_Weee_Model_Total_Quote_WeeeIndirect known subclasses
Mage_Weee_Model_Total_Quote_Nominal_WeeeCopyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Located at code/core/Mage/Tax/Model/Sales/Total/Quote/Tax.php
public
|
|
public
Mage_Tax_Model_Sales_Total_Quote
|
|
protected
|
#
_processHiddenTaxes( )
Process hidden taxes for items and shippings (in accordance with hidden tax type) |
protected
boolean
|
#
_usePriceIncludeTax( mixed $store )
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 |
protected
Mage_Tax_Model_Sales_Total_Quote
|
#
_calculateShippingTax(
Tax caclulation for shipping price |
protected
Mage_Tax_Model_Sales_Total_Quote
|
#
_unitBaseCalculation(
Calculate address tax amount based on one unit price and tax amount |
protected
Mage_Tax_Model_Sales_Total_Quote
|
#
_calcUnitTaxAmount(
Calculate unit tax anount based on unit price |
protected
Mage_Tax_Model_Sales_Total_Quote
|
#
_rowBaseCalculation(
Calculate address total tax based on row total |
protected
Mage_Tax_Model_Sales_Total_Quote
|
#
_calcRowTaxAmount(
Calculate item tax amount based on row total |
protected
Mage_Tax_Model_Sales_Total_Quote
|
#
_totalBaseCalculation(
Calculate address total tax based on address subtotal |
protected
Mage_Tax_Model_Sales_Total_Quote
|
#
_aggregateTaxPerRate(
Aggregate row totals per tax rate in array |
protected
float
|
#
_deltaRound( float $price, string $rate, boolean $direction, string $type = 'regular' )
Round price based on previous rounding operation delta |
protected
Mage_Tax_Model_Sales_Total_Quote
|
#
_recalculateParent(
Recalculate parent item amounts base on children data |
protected
|
#
_saveAppliedTaxes(
Collect applied tax rates information on address level |
public
Mage_Tax_Model_Sales_Total_Quote
|
|
public
array
|
#
processConfigArray( array $config, store $store )
Process model configuration array. This method can be used for changing totals collect sort order |
public
string
|
protected
|
$_helper |
|
#
Tax module helper |
protected
|
$_calculator |
|
#
Tax calculation model |
protected
|
$_config |
|
#
Tax configuration object |
protected
boolean
|
$_areTaxRequestsSimilar | false |
#
Flag which is initialized when collect method is start. Is used for checking if store tax and customer tax requests are similar |
protected
array
|
$_roundingDeltas | array() |
|
protected
array
|
$_baseRoundingDeltas | array() |
|
protected
mixed
|
$_store |
|
$_address,
$_canAddAmountToAddress,
$_canSetAddressAmount,
$_code,
$_itemRowTotalKey
|