From a0e93ab1324dfa8df5fbe620f12c3a7e3b9fbab5 Mon Sep 17 00:00:00 2001 From: vadivelJ96 Date: Wed, 5 Mar 2025 12:30:11 +0530 Subject: [PATCH 1/2] changes in supplier module 05-03-2025 --- app/Controllers/Inwardgateregister.php | 1 + app/Views/viewinwardgateregister.php | 27 ++++++++++++++++++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/app/Controllers/Inwardgateregister.php b/app/Controllers/Inwardgateregister.php index e7f3a97a..b709be63 100755 --- a/app/Controllers/Inwardgateregister.php +++ b/app/Controllers/Inwardgateregister.php @@ -691,6 +691,7 @@ function viewIGRDetails() $IGRNO = $this->request->getPost('id'); $data['details'] = $this->inwardgateregister_model->viewigr($IGRNO); + $TaxInPercentage = 0; for ($i = 0; $i < count($data['details']); $i++) { $details = $data['details'][$i]; diff --git a/app/Views/viewinwardgateregister.php b/app/Views/viewinwardgateregister.php index c73bcc47..adebd413 100755 --- a/app/Views/viewinwardgateregister.php +++ b/app/Views/viewinwardgateregister.php @@ -1273,8 +1273,9 @@ '' ; + let regex = /gas/i; - if(item.MaterialCategory == "gas"){ + if(regex.test(item.MaterialCategory) ){ $('#gasShortageHeader').show(); $('#gasShortageListHeader').show(); trIGRHTML += ' ' ; @@ -2461,8 +2462,17 @@ @@ -2535,9 +2545,16 @@ @@ -2572,6 +2589,8 @@ console.log(response.data); let data = response.data ; + console.log("gas shortage list"); + console.log(data); let tableData = ''; data.forEach((val) => { @@ -2601,7 +2620,7 @@ // Assuming you have a table with ID "gasShortageTable" $("#gasShortageTable tbody").html(tableData); - + } else { From c3c7cd95a06344771ea73b6e7792401422ec55cd Mon Sep 17 00:00:00 2001 From: vadivelJ96 Date: Wed, 5 Mar 2025 13:58:54 +0530 Subject: [PATCH 2/2] changes in supplier module 05-03-2025 --- app/Views/editdepartment.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Views/editdepartment.php b/app/Views/editdepartment.php index 11a4fc50..88fb7515 100755 --- a/app/Views/editdepartment.php +++ b/app/Views/editdepartment.php @@ -186,6 +186,12 @@ $("#deptBtnId").on('click',function(){ let depCode =$("#DEPCode").val(); let headDepCode = $("#HeadDept").val(); + + if(departmentName.length<1){ + alert(`Department Name cannot be empty..!!`); + return; + } + $('#loader').show(); $.ajax({ type:"POST",