Mage_Adminhtml_Block_Sales_Order_Invoice_View_Form Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Sales_Order_Invoice_View_Form:

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

 getOrder ()
 getSource ()
 getInvoice ()
 getOrderUrl ()
 formatPrice ($price)


Detailed Description

Definition at line 34 of file Form.php.


Member Function Documentation

formatPrice ( price  ) 

Retrieve formated price

Parameters:
float $price
Returns:
string

Definition at line 80 of file Form.php.

00081     {
00082         return $this->getInvoice()->getOrder()->formatPrice($price);
00083     }

getInvoice (  ) 

Retrieve invoice model instance

Returns:
Mage_Sales_Model_Order_Invoice

Definition at line 61 of file Form.php.

00062     {
00063         return Mage::registry('current_invoice');
00064     }

getOrder (  ) 

Retrieve invoice order

Returns:
Mage_Sales_Model_Order

Reimplemented from Mage_Adminhtml_Block_Sales_Order_Abstract.

Definition at line 41 of file Form.php.

00042     {
00043         return $this->getInvoice()->getOrder();
00044     }

getOrderUrl (  ) 

Retrieve order url

Definition at line 69 of file Form.php.

00070     {
00071         return $this->getUrl('*/sales_order/view', array('order_id' => $this->getInvoice()->getOrderId()));
00072     }

getSource (  ) 

Retrieve source

Returns:
Mage_Sales_Model_Order_Invoice

Definition at line 51 of file Form.php.

00052     {
00053         return $this->getInvoice();
00054     }


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