From 12b92d4f4c5f984aa8f3b30411ac679a02b3d98d Mon Sep 17 00:00:00 2001 From: vadivel J Date: Wed, 9 Oct 2024 08:44:27 +0530 Subject: [PATCH] minor change in stock module -vadivel J --- app/Config/Routes.php | 1 + app/Controllers/StockController.php | 3 +- app/Views/CoatingMachineDetail.php | 141 +++++++++++++++++++++++++++- 3 files changed, 141 insertions(+), 4 deletions(-) diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 8473e21d..6b9a75ac 100755 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -416,5 +416,6 @@ $routes->post('getSilicaIGR', 'Supplier::getSilicaIGR'); $routes->get('coatingMachineDetails' , 'StockController::loadView_coatingMachineDetails'); $routes->post('addNewCoatingMachineDetails' , 'StockController::addNewCoatingMachineDetails'); +$routes->post('updateCoatingMachineDetails','StockController::updateCoatingMachineDetails'); $routes->get('deleteCoatingMachineDetails' , 'StockController::deleteCoatingMachineDetails'); diff --git a/app/Controllers/StockController.php b/app/Controllers/StockController.php index 3f19d74a..68602ec4 100644 --- a/app/Controllers/StockController.php +++ b/app/Controllers/StockController.php @@ -78,11 +78,12 @@ class StockController extends BaseController } + public function updateCoatingMachineDetails(){ $putData=$this->request->getPost(); - $id = $this->request->getGet('id'); + $id = $putData['editCoatingMachineDetailId']; $updated= $this->coatingMachineDetails_model->update($id,$putData); diff --git a/app/Views/CoatingMachineDetail.php b/app/Views/CoatingMachineDetail.php index 2b30e678..cdeef485 100644 --- a/app/Views/CoatingMachineDetail.php +++ b/app/Views/CoatingMachineDetail.php @@ -143,9 +143,8 @@ - +     @@ -270,6 +269,93 @@ + + + + + + + +