Mage_Adminhtml_Block_Report_Sales_Invoiced_Grid Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Report_Sales_Invoiced_Grid:

Mage_Adminhtml_Block_Report_Grid Mage_Adminhtml_Block_Widget_Grid 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

 __construct ()

Protected Member Functions

 _prepareCollection ()
 _prepareColumns ()


Detailed Description

Definition at line 34 of file Grid.php.


Constructor & Destructor Documentation

__construct (  ) 

Constructor

By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes

Reimplemented from Mage_Adminhtml_Block_Report_Grid.

Definition at line 37 of file Grid.php.

00038     {
00039         parent::__construct();
00040         $this->setId('gridInvoiced');
00041     }


Member Function Documentation

_prepareCollection (  )  [protected]

Prepare grid collection object

Returns:
this

Validate from and to date

Getting and saving store ids for website & group

Reimplemented from Mage_Adminhtml_Block_Report_Grid.

Definition at line 43 of file Grid.php.

00044     {
00045         parent::_prepareCollection();
00046         $this->getCollection()->initReport('reports/invoiced_collection');
00047     }

_prepareColumns (  )  [protected]

Reimplemented from Mage_Adminhtml_Block_Report_Grid.

Definition at line 49 of file Grid.php.

00050     {
00051         $this->addColumn('orders', array(
00052             'header'    =>Mage::helper('reports')->__('Number of Orders'),
00053             'index'     =>'orders',
00054             'total'     =>'sum',
00055             'type'      =>'number'
00056         ));
00057 
00058         $this->addColumn('orders_invoiced', array(
00059             'header'    =>Mage::helper('reports')->__('Number of Ivoiced Orders'),
00060             'index'     =>'orders_invoiced',
00061             'total'     =>'sum',
00062             'type'      =>'number'
00063         ));
00064 
00065         $currency_code = $this->getCurrentCurrencyCode();
00066 
00067         $this->addColumn('invoiced', array(
00068             'header'    =>Mage::helper('reports')->__('Total Invoiced'),
00069             'type'      =>'currency',
00070             'currency_code'=>$currency_code,
00071             'index'     =>'invoiced',
00072             'total'     =>'sum',
00073             'renderer'  =>'adminhtml/report_grid_column_renderer_currency'
00074         ));
00075 
00076         $this->addColumn('invoiced_captured', array(
00077             'header'    =>Mage::helper('reports')->__('Total Invoiced Captured'),
00078             'type'      =>'currency',
00079             'currency_code'=>$currency_code,
00080             'index'     =>'invoiced_captured',
00081             'total'     =>'sum',
00082             'renderer'  =>'adminhtml/report_grid_column_renderer_currency'
00083         ));
00084 
00085         $this->addColumn('invoiced_not_captured', array(
00086             'header'    =>Mage::helper('reports')->__('Total Invoiced not Captured'),
00087             'type'      =>'currency',
00088             'currency_code'=>$currency_code,
00089             'index'     =>'invoiced_not_captured',
00090             'total'     =>'sum',
00091             'renderer'  =>'adminhtml/report_grid_column_renderer_currency'
00092         ));
00093 
00094         $this->addExportType('*/*/exportInvoicedCsv', Mage::helper('reports')->__('CSV'));
00095         $this->addExportType('*/*/exportInvoicedExcel', Mage::helper('reports')->__('Excel'));
00096 
00097         return parent::_prepareColumns();
00098     }


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

Generated on Sat Jul 4 17:22:56 2009 for Magento by  doxygen 1.5.8