示例#1
0
文件: Tax.php 项目: onepica/avatax
 /**
  * Calculate item row total
  *
  * @param Mage_Sales_Model_Quote_Item $item
  * @return $this
  * @see Mage_Sales_Model_Quote_Item::calcRowTotal()
  */
 protected function _calcItemRowTotal($item)
 {
     $qty = $item->getTotalQty();
     $total = $this->_getDataHelper()->roundUp($item->getCalculationPriceOriginal(), 4) * $qty;
     $baseTotal = $this->_getDataHelper()->roundUp($item->getBaseCalculationPriceOriginal(), 4) * $qty;
     $item->setRowTotal($this->_getDataHelper()->roundUp($total, 4));
     $item->setBaseRowTotal($this->_getDataHelper()->roundUp($baseTotal, 4));
     return $this;
 }