Ok, I tried the Vendas sample in local and simply could not get it to show up at all. So, I am now modifying core (but backing up constantly) and trying to get the Vendas example to work. My hope is that once I get the report working and the demo up for the customer I can go back and get it working in local.
Unfortunately, when I select the Vendas report from the menu I get the following error:
Fatal error: Call to a member function getStoreIds() on a non-object in /web/sites/commonwealth.missiondata.net/html/magento/app/code/core/Mage/Adminhtml/Block/Report/Sales/Sales/Grid.php on line 80
This appears to be:
if ($this->getFilterData()->getStoreIds()) {
$this->setStoreIds(explode(’,’, $this->getFilterData()->getStoreIds()));
Ok, I caught one small error, but I still get the following error:
Fatal error: Call to a member function getStoreIds() on a non-object in /web/sites/commonwealth.missiondata.net/html/magento/app/code/core/Mage/Adminhtml/Block/Report/Sales/Vendas/Grid.php on line 80
Guys, I was in desperate need for something to speed this up so I bought this extension. Mate, easily the best thing I did. Give it a look, it most likly does what you guys are asking for. Custom Profit Loss Report
Was anyone here able to make it work? I am unable to
As far as the getStoreId issue is concerned, I believe its coming because of the line
->_addContent($this->getLayout()->createBlock(’adminhtml/report_sales_vendas’))
It should be
->_addContent($this->getLayout()->createBlock(’report_sales_vendas.grid’))
Anybody who was able to do can please let us know. Thanks a lot.
I’m having a similar issue. The error I get on the custom report page (coming from report’s controller indexAction funciton. Happens within the renderLayout function call).
Fatal error: Call to a member function getData() on a non-object in .../html/app/code/core/Mage/Adminhtml/Block/Report/Grid/Abstract.php on line 113
The non-object is filter data. I would really appreciate a point in the right direction.
My controller object extends Mage_Adminhtml_Report_SalesController
Block extends Mage_Adminhtml_Block_Widget_Grid_Container
Grid extends Mage_Adminhtml_Block_Report_Grid_Abstract
and I have a custom filter from that extends Mage_Adminhtml_Block_Widget_Form
I created a layout file and a model file that extends Mage_Reports_Model_Mysql4_Order_Collection - but I haven’t really done anything this than copy something from a tutorial as I don’t think that’s the step I"m on yet. I need to figure out how to use the Form built in the UI.
I’m feeling very lost and don’t know if I’m on the right path. If you know of any tips or a good tutorial it would be really appreciated.