/** * prepare columns for this grid * * @return Magestore_Marketingautomation_Block_Adminhtml_Contact_Grid */ protected function _prepareColumns() { $this->addColumn('period', array('header' => Mage::helper('webpos')->__('Period'), 'align' => 'left', 'total' => 'sum', 'sortable' => false, 'filter' => false, 'index' => 'period', 'width' => '200px')); $this->addColumn('location', array('header' => Mage::helper('webpos')->__('Location'), 'align' => 'left', 'total' => 'sum', 'sortable' => false, 'filter' => false, 'index' => 'location', 'width' => '400px')); $this->addColumn('totals_sales', array('header' => Mage::helper('webpos')->__('Sales Total'), 'align' => 'left', 'total' => 'sum', 'sortable' => false, 'filter' => false, 'width' => '100px', 'index' => 'totals_sales', 'type' => 'price', 'currency_code' => Mage::app()->getStore()->getBaseCurrency()->getCode())); $this->addExportType('*/*/exportCsv', Mage::helper('webpos')->__('CSV')); $this->addExportType('*/*/exportXml', Mage::helper('webpos')->__('XML')); return parent::_prepareColumns(); }