Class Mage_Tax_Model_Sales_Total_Quote_Subtotal
Calculate items and address amounts including/excluding tax
- Mage_Sales_Model_Quote_Address_Total_Abstract
- Mage_Tax_Model_Sales_Total_Quote_Subtotal
Direct known subclasses
Mage_Tax_Model_Sales_Total_Quote_Nominal_SubtotalCopyright: 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/Subtotal.php
public
|
|
public
|
#
collect(
Calculate item price including/excluding tax, row total including/excluding tax and subtotal including/excluding tax. Determine discount price if needed |
protected
|
#
_processItem(
Caclulate item price and row total with configured rounding level |
protected
|
#
_unitBaseCalculation(
Calculate item price and row total including/excluding tax based on unit price rounding level |
protected
|
#
_rowBaseCalculation(
Calculate item price and row total including/excluding tax based on row total price rounding level |
protected
|
#
_totalBaseCalculation(
Calculate item price and row total including/excluding tax based on total price rounding level |
protected
boolean
|
#
_sameRateAsStore( Varien_Object $request )
Checks whether request for an item has same rate as store one Used only after collect() started, as far as uses optimized $_areTaxRequestsSimilar property Used only in case of prices including tax |
protected
float
|
#
_deltaRound( float $price, string $rate, boolean $direction, string $type = 'regular' )
Round price based on previous rounding operation delta |
protected
|
#
_recalculateParent(
Recalculate row information for item based on children calculation |
protected
Varien_Object
|
#
_getStoreTaxRequest(
Get request for fetching store tax rate |
protected
Varien_Object
|
#
_getAddressTaxRequest(
Get request for fetching address tax rate |
protected
|
#
_addSubtotalAmount(
Add row total item amount to subtotal |
protected
|
$_calculator | null |
#
Tax calculation model |
protected
|
$_config | null |
#
Tax configuration object |
protected
mixed
|
$_helper | null |
|
protected
integer
|
$_subtotalInclTax | 0 |
|
protected
integer
|
$_baseSubtotalInclTax | 0 |
|
protected
integer
|
$_subtotal | 0 |
|
protected
integer
|
$_baseSubtotal | 0 |
|
protected
boolean
|
$_areTaxRequestsSimilar | false |
#
Flag which is initialized when collect method is started and catalog prices include tax. Is used for checking if store tax and customer tax requests are similar |
protected
Varien_Object
|
$_storeTaxRequest | null |
#
Request which can be used for tax rate calculation |
protected
|
$_store |
|
#
Quote store |
protected
array
|
$_roundingDeltas | array() |
#
Rounding deltas for prices |
$_address,
$_canAddAmountToAddress,
$_canSetAddressAmount,
$_code,
$_itemRowTotalKey
|