/** * Format total value based on order currency * * @param Varien_Object $total * @return string */ public function formatValue($total) { if (!$total->getIsFormated()) { return $this->helper('adminhtml/sales')->displayPrices($this->getOrder(), $total->getBaseValue(), $total->getValue()); } return $total->getValue(); }
/** * Format price using order currency * * @param Varien_Object $total * @return string */ protected function _formatPrice($total) { if (!$total->getIsFormated()) { return Mage::helper('xmlconnect/customer_order')->formatPrice($this, $total->getValue()); } return $total->getValue(); }
/** * Format total value based on order currency * * @param Varien_Object $total * @return string */ public function formatValue($total) { if (!$total->getIsFormated()) { return $this->getOrder()->formatPrice($total->getValue()); } return $total->getValue(); }
/** * Format price using order currency * * @param Varien_Object $total * @return string */ protected function _formatPrice($total) { if (!$total->getIsFormated()) { return Mage::helper('Mage_XmlConnect_Helper_Customer_Order')->formatPrice($this, $total->getValue()); } return $total->getValue(); }
/** * Format total value based on order currency * * @param Varien_Object $total * @return string */ protected function formatTotalValue($total) { if (!$total->getIsFormated()) { return Mage::helper('core')->currency($total->getValue(), true, false); } return $total->getValue(); }
/** * Format price using order currency * * @param Varien_Object $total * @return string */ protected function _formatPrice($total) { if (!$total->getIsFormated()) { return $this->getOrder()->getOrderCurrency()->formatPrecision($total->getValue(), 2, array(), false); } return $total->getValue(); }