Ejemplo n.º 1
0
 public function ajaxStockBinPlacementAction()
 {
     $this->_helper->layout->setLayout('ajax');
     $id = $this->_request->getParam('id', '');
     $stock_batch = new Model_StockBatch();
     $form = new Form_StockPlacement();
     $form->addHidden();
     $stock_batch->form_values['stock_detail'] = $id;
     $data = $stock_batch->getStockBatchAndDetailById();
     $this->view->data = $data;
     $data['placed_quantity'] = 0;
     $this->view->data['placed_quantity'] = $data['placed_quantity'];
     $this->view->data['remaining_quantity'] = $data['quantity'] - $data['placed_quantity'];
     $this->view->form = $form;
 }