Public Member Functions | |
__construct () | |
Protected Member Functions | |
_prepareCollection () | |
_prepareColumns () |
Definition at line 34 of file Grid.php.
__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('gridRefunded'); 00041 }
_prepareCollection | ( | ) | [protected] |
Prepare grid collection object
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/refunded_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 Refunded Orders'), 00053 'index' =>'orders', 00054 'total' =>'sum', 00055 'type' =>'number' 00056 )); 00057 00058 $currency_code = $this->getCurrentCurrencyCode(); 00059 00060 $this->addColumn('refunded', array( 00061 'header' =>Mage::helper('reports')->__('Total Refunded'), 00062 'type' =>'currency', 00063 'currency_code'=>$currency_code, 00064 'index' =>'refunded', 00065 'total' =>'sum', 00066 'renderer' =>'adminhtml/report_grid_column_renderer_currency' 00067 )); 00068 00069 $this->addColumn('online_refunded', array( 00070 'header' =>Mage::helper('reports')->__('Online Refunded'), 00071 'type' =>'currency', 00072 'currency_code'=>$currency_code, 00073 'index' =>'online_refunded', 00074 'total' =>'sum', 00075 'renderer' =>'adminhtml/report_grid_column_renderer_currency' 00076 )); 00077 00078 $this->addColumn('offline_refunded', array( 00079 'header' =>Mage::helper('reports')->__('Offline Refunded'), 00080 'type' =>'currency', 00081 'currency_code'=>$currency_code, 00082 'index' =>'offline_refunded', 00083 'total' =>'sum', 00084 'renderer' =>'adminhtml/report_grid_column_renderer_currency' 00085 )); 00086 00087 $this->addExportType('*/*/exportRefundedCsv', Mage::helper('reports')->__('CSV')); 00088 $this->addExportType('*/*/exportRefundedExcel', Mage::helper('reports')->__('Excel')); 00089 00090 return parent::_prepareColumns(); 00091 }