public function ajaxInlineEditAction() { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(TRUE); $stock_batch = new Model_StockBatch(); $stock_detail = new Model_StockDetail(); if (isset($this->_request->id) && !empty($this->_request->id)) { $type = $this->_request->type; $stock_detail->form_values['adjustment_type'] = $this->_request->adjustment_type; if ($type == 'quantity') { $stock_detail->form_values['pk_id'] = $this->_request->id; $stock_detail->form_values['quantity'] = str_replace(",", "", $this->_request->data); $stock_detail->editQuantity(); } else { if ($type == 'batch') { $stock_batch->form_values['pk_id'] = $this->_request->id; $stock_batch->form_values['number'] = $this->_request->data; $str_result = $stock_batch->editBatchNo(); if ($str_result == true) { echo "true"; } else { echo "false"; } } } } }