public function batchSummaryAction() { $this->_helper->layout->setLayout('print'); //$this->view->headTitle("Batch Summary"); $stock_batch = new Model_StockBatch(); if (!empty($this->_request->type)) { $stock_batch->form_values = $this->_request->getParams(); $data = $stock_batch->searchStockBatch(); $this->view->data = $data; $this->view->print_title = "Batch Management"; $this->view->status = $this->_request->getParam('status'); } else { $stock_batch->form_values['adjustment_no'] = $this->_request->adjustment_no; $stock_batch->form_values['adjustment_type'] = $this->_request->adjustment_type; $stock_batch->form_values['product'] = $this->_request->product; $stock_batch->form_values['date_from'] = $this->_request->date_from; $stock_batch->form_values['date_to'] = $this->_request->date_to; $summary = $stock_batch->batchSummary(); $expired_summary = $stock_batch->expiredBatchSummary(); $this->view->summary = $summary; $this->view->expired_summary = $expired_summary; $this->view->print_title = "Batch Management Summary"; } $this->view->warehousename = $this->_identity->getWarehouseName(); $this->view->username = $this->_identity->getUserName(); }