protected function _afterLoadCollection() { $totalObj = new Mage_Reports_Model_Totals(); $this->setTotals($totalObj->countTotals($this)); }
public function getReport($from, $to) { if ($from == '') { $from = $this->getFilter('report_from'); } if ($to == '') { $to = $this->getFilter('report_to'); } $totalObj = new Mage_Reports_Model_Totals(); $this->setTotals($totalObj->countTotals($this, $from, $to)); $this->addGrandTotals($this->getTotals()); return $this->getCollection()->getReport($from, $to); }