From f7a0d44692990d3246b8582bc0c05b800ef2bf92 Mon Sep 17 00:00:00 2001 From: vadivelJ96 Date: Sat, 15 Mar 2025 17:12:46 +0530 Subject: [PATCH] bug fixes in purchase module - 15-03-2025 --- app/Controllers/StockController.php | 9 +-------- app/Views/servicePurchaseorder.php | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/app/Controllers/StockController.php b/app/Controllers/StockController.php index a96b6502..054785d5 100644 --- a/app/Controllers/StockController.php +++ b/app/Controllers/StockController.php @@ -3266,14 +3266,6 @@ class StockController extends BaseController try { - // dd($updateMaintenance); - // dd($updateProduction); - // dd($updateWaste); - - // dd($insertMaintenance); - // dd($insertProduction); - // dd($insertWaste); - // Insert new records in batch if (!empty($insertMaintenance)) { $this->TrpProductionMaintenance_model->insertBatch($insertMaintenance); @@ -3285,6 +3277,7 @@ class StockController extends BaseController $this->TrpProductionWaste_model->insertBatch($insertWaste); } + // Update existing records in batch if (!empty($updateMaintenance)) { $this->TrpProductionMaintenance_model->updateBatch($updateMaintenance, 'id'); diff --git a/app/Views/servicePurchaseorder.php b/app/Views/servicePurchaseorder.php index 58f50851..ce864503 100755 --- a/app/Views/servicePurchaseorder.php +++ b/app/Views/servicePurchaseorder.php @@ -1790,7 +1790,7 @@ if (!empty($INRSYMBOL)) { $(document).ready(function() { - $(document).on("shown.bs.modal", "#EDITSERVICE", function (e) { + $(document).on("shown.bs.modal", "#EDITSERVICELINEITEM", function (e) { console.log("Worng"); userid = $(e.relatedTarget).data('userid');