/** * Get sales item (quote item, order item etc) row total price including tax * * @param Varien_Object $item * @return float */ public function getSubtotalInclTax($item) { if ($item->getRowTotalInclTax()) { return $item->getRowTotalInclTax(); } $tax = $item->getTaxAmount() + $item->getDiscountTaxCompensation(); return $item->getRowTotal() + $tax; }
/** * Get sales item (quote item, order item etc) row total price including tax * * @param Varien_Object $item * @return float */ public function getSubtotalInclTax($item) { if ($item->getRowTotalInclTax()) { return $item->getRowTotalInclTax(); } //Since tax amount contains weee tax $tax = $item->getTaxAmount() + $item->getDiscountTaxCompensation() - $this->_getWeeeHelper()->getTotalRowTaxAppliedForWeeeTax($item); return $item->getRowTotal() + $tax; }