public function batchSummary2PrintAction() { $this->_helper->layout->setLayout('print'); $stock_batch = new Model_StockBatch(); $summary = $stock_batch->batchSummary2(); $summarybefore = $stock_batch->batchSummaryBefore(); $stock_batch->form_values = array('from_date' => '2015-03-11', 'to_date' => date("Y-m-d")); $transactions = $stock_batch->getIssueReceiveByDate(); $this->view->summary = $summary; $this->view->summarybefore = $summarybefore; $this->view->transactions = $transactions; $this->view->headTitle("Batch Summary"); $this->view->warehousename = $this->_identity->getWarehouseName(); }