Mage_Adminhtml_Block_Sales_Order_Totals_Tax Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Sales_Order_Totals_Tax:

Mage_Adminhtml_Block_Sales_Order_Totals Mage_Adminhtml_Block_Sales_Order_Abstract Mage_Adminhtml_Block_Widget Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getFullTaxInfo ()
 displayAmount ($amount, $baseAmount)

Protected Member Functions

 _beforeToHtml ()


Detailed Description

Definition at line 34 of file Tax.php.


Member Function Documentation

_beforeToHtml (  )  [protected]

Retrieve required options from parent

Reimplemented from Mage_Adminhtml_Block_Sales_Order_Totals.

Definition at line 39 of file Tax.php.

00040     {
00041         if (!$this->getParentBlock()) {
00042             Mage::throwException(Mage::helper('adminhtml')->__('Invalid parrent block for this block'));
00043         }
00044         $this->setOrder($this->getParentBlock()->getSource());
00045 
00046         parent::_beforeToHtml();
00047     }

displayAmount ( amount,
baseAmount 
)

Definition at line 55 of file Tax.php.

00056     {
00057         return $this->displayPrices($baseAmount, $amount, false, '<br />');
00058     }

getFullTaxInfo (  ) 

Definition at line 49 of file Tax.php.

00050     {
00051         $rates = Mage::getModel('sales/order_tax')->getCollection()->loadByOrder($this->getOrder())->toArray();
00052         return Mage::getSingleton('tax/calculation')->reproduceProcess($rates['items']);
00053     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:01 2009 for Magento by  doxygen 1.5.8