1
votes

I want to add Cost price and selling price fields in low stock report in magento. I've attached a screenshot of low stock report page, here I want to add cost price and selling price fields next to "Stock Qty field". How can I add these custom fields in low stock report.? Could anyone tell me the steps to create custome fields in low stock report?

enter image description here

Thank you.

1

1 Answers

1
votes

You can do override of _prepareColumns method Mage_Adminhtml_Block_Report_Product_Lowstock_Grid classn add another column like:

$this->addColumn('price', array(
        'header'    =>Mage::helper('reports')->__('Price'),
        'width'     =>'215px',
        'align'     =>'right',
        'sortable'  =>false,
        'filter'    =>'adminhtml/widget_grid_column_filter_range',
        'index'     =>'price',
        'type'      =>'number'
    ));