Пример #1
0
 public function ajaxProductLedgerAction()
 {
     $this->_helper->layout->disableLayout();
     $query = array();
     parse_str($this->_request->getParam('data'), $query);
     $from_date = $query['from_date'];
     $to_date = $query['to_date'];
     $stock_master = new Model_StockMaster();
     //$query['from_date'] = date("01/01/2013");
     $stock_master->form_values = $query;
     $result = $stock_master->getProductLedger();
     $ob = $stock_master->getProductOB();
     $batch_ob = $stock_master->getBatchOB();
     $stock_master->form_values['from_date'] = $query['to_date'];
     $batch_cb = $stock_master->getBatchOB();
     $this->view->result = $result;
     $this->view->ob = $ob;
     $this->view->cb_batch = $batch_cb;
     $this->view->ob_batch = $batch_ob;
     $this->view->from_date = $from_date;
     $this->view->to_date = $to_date;
     $this->view->role_id = $this->_identity->getRoleId();
 }