Public Member Functions | |
getFullTaxInfo () | |
displayAmount ($amount, $baseAmount) | |
Protected Member Functions | |
_beforeToHtml () |
Definition at line 34 of file Tax.php.
_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 }