From 2c036b28dac8775b0281c379718358a13444f01e Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Fri, 16 May 2025 06:11:13 +0000 Subject: [PATCH] assigned issues fixes --- app/Controllers/Employeedetails.php | 2 +- app/Models/Dashboard_model.php | 10 +- app/Views/accountsDashboard.php | 4 +- app/Views/editOld.php | 26 +- app/Views/viewinwardgateregister.php | 421 +-------------------------- public/assets/js/editUser.js | 83 ++++-- 6 files changed, 87 insertions(+), 459 deletions(-) diff --git a/app/Controllers/Employeedetails.php b/app/Controllers/Employeedetails.php index ae289a5c..d6fb02f1 100755 --- a/app/Controllers/Employeedetails.php +++ b/app/Controllers/Employeedetails.php @@ -918,7 +918,7 @@ class Employeedetails extends BaseController $empPayUpdate = $this->emppaydate_model->editemppay($emppay); if ($result + $empPayUpdate > 0) { - $this->session->setFlashdata('success', 'You Have Successfully updated the Employee Record!'); + $this->session->setFlashdata('success', 'You Have Successfully Updated the Employee Record!'); return json_encode(true); } else { $this->session->setFlashdata('error', 'Record Not Updated!'); diff --git a/app/Models/Dashboard_model.php b/app/Models/Dashboard_model.php index fe2acaa8..5feec586 100755 --- a/app/Models/Dashboard_model.php +++ b/app/Models/Dashboard_model.php @@ -2234,11 +2234,11 @@ join t_purchaseorder_master po on po.PONO = pl.PONO join t_supplierdetailsn sup on sup.SupplierID=po.SupplierID join t_materialmaster mm on mm.MaterialCode=pl.MaterialCode join t_configdetails cd on cd.key = mm.Category -where po.Status != 'ST030' and po.Status = 'ST026 and po.IsOpenOrder != '1' +where po.Status != 'ST030' and po.Status = 'ST026' and (po.IsOpenOrder IS NULL OR po.IsOpenOrder = 1) "; if ($cname != '') { - $sql .= "and sup.SupplierName = '" . $cname . "'"; + $sql .= " and sup.SupplierName = '" . $cname . "'"; } @@ -2249,14 +2249,14 @@ where po.Status != 'ST030' and po.Status = 'ST026 and po.IsOpenOrder != '1' } if ($m != '') { - $sql .= "and monthname(po.PODate) = '" . $m . "'"; + $sql .= " and monthname(po.PODate) = '" . $m . "'"; } if ($frm and $t != '') { $fromd = date("Y-m-d", strtotime($frm)); $tod = date("Y-m-d", strtotime($t)); - $sql .= "and date(po.PODate) >= '" . $fromd . "' + $sql .= " and date(po.PODate) >= '" . $fromd . "' and date(po.PODate) <= '" . $tod . "'"; } if ($prod != '') { @@ -2272,7 +2272,7 @@ where po.Status != 'ST030' and po.Status = 'ST026 and po.IsOpenOrder != '1' if ($purchaseorder_number != '') { $sql .= " and po.PONO = '" . $purchaseorder_number . "' "; } - $sql .= "order by date(po.PODate) desc"; + $sql .= " order by date(po.PODate) desc"; $query = $this->db->query($sql); //echo $sql; return $query->getResult(); diff --git a/app/Views/accountsDashboard.php b/app/Views/accountsDashboard.php index 04df9398..c7c7a1b0 100644 --- a/app/Views/accountsDashboard.php +++ b/app/Views/accountsDashboard.php @@ -192,6 +192,7 @@ Driver Transporter IGR Status + Remark Action @@ -253,9 +254,10 @@ } ?> + Remark; ?> - + diff --git a/app/Views/editOld.php b/app/Views/editOld.php index 6a78ddff..d1c09787 100755 --- a/app/Views/editOld.php +++ b/app/Views/editOld.php @@ -1,3 +1,9 @@ + + + + + + @@ -313,4 +315,4 @@ if (!empty($EmpList)) { alert("Invalid email address"); } }); -> \ No newline at end of file + \ No newline at end of file diff --git a/app/Views/viewinwardgateregister.php b/app/Views/viewinwardgateregister.php index 71eda799..c3d8ab6c 100755 --- a/app/Views/viewinwardgateregister.php +++ b/app/Views/viewinwardgateregister.php @@ -234,7 +234,7 @@ Driver Transporter IGR Status - + Remark Action @@ -297,12 +297,12 @@ DriverName ?> TransporterName ?> IGRStatus == 'ST029'){ echo 'Cancel'; } elseif($record->IGRStatus == 'ST074'){ echo 'Draft'; } else{ echo 'Completed'; } ?> - + Remark; ?> - + @@ -2469,421 +2469,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -