From 1c2a473c5aeb2a8de8f2db1999dc947ff07cebaa Mon Sep 17 00:00:00 2001 From: venba-Inspriron-3558 Date: Tue, 19 Aug 2025 15:57:57 +0530 Subject: [PATCH 01/54] CHANGE_API --- app/Controllers/ThzController.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/Controllers/ThzController.php b/app/Controllers/ThzController.php index fd2f424f..c725b49a 100644 --- a/app/Controllers/ThzController.php +++ b/app/Controllers/ThzController.php @@ -110,14 +110,17 @@ class ThzController extends BaseController ->where('thz_master.thz_id', $thz_id) ->findAll(); - $notes = $this->thzMasterNotesModel->ticketConversationList($thz_id); - $result['notes'] = !empty($notes) ? $notes : []; - + if(!empty($result['master'])){ + $notes = $this->thzMasterNotesModel->ticketConversationList($thz_id); + $result['notes'] = !empty($notes) ? $notes : []; + }else{ + return $this->response->setJSON((['status' => 'error', 'message' => 'No tickets master found']))->setStatusCode(400); + } }else{ return $this->response->setJSON((['status' => 'error', 'message' => 'No tickets found']))->setStatusCode(404); } - return $this->response->setJSON((['status' => 'success', 'data' => $result]))->setStatusCode(400); + return $this->response->setJSON((['status' => 'success', 'data' => $result]))->setStatusCode(200); } From b6a2dad5ea0724a166244cbde4ad108af145544b Mon Sep 17 00:00:00 2001 From: venba-Inspriron-3558 Date: Tue, 19 Aug 2025 16:05:38 +0530 Subject: [PATCH 02/54] CHANGE_API --- app/Controllers/ThzController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/ThzController.php b/app/Controllers/ThzController.php index c725b49a..094f8c0a 100644 --- a/app/Controllers/ThzController.php +++ b/app/Controllers/ThzController.php @@ -114,7 +114,7 @@ class ThzController extends BaseController $notes = $this->thzMasterNotesModel->ticketConversationList($thz_id); $result['notes'] = !empty($notes) ? $notes : []; }else{ - return $this->response->setJSON((['status' => 'error', 'message' => 'No tickets master found']))->setStatusCode(400); + return $this->response->setJSON((['status' => 'error', 'message' => 'No tickets found']))->setStatusCode(400); } }else{ return $this->response->setJSON((['status' => 'error', 'message' => 'No tickets found']))->setStatusCode(404); From 066334791598bf98551fe7234ef9c3a904873382 Mon Sep 17 00:00:00 2001 From: vadivelJ96 Date: Tue, 19 Aug 2025 17:31:38 +0530 Subject: [PATCH 03/54] CHANGE UI LEVEL FIXES - VADIVEL J 2025-08-19 --- app/Controllers/ThzController.php | 2 +- app/Helpers/header.php | 1 - app/Views/DashBoard.php | 15 +++++++-------- app/Views/bds_dash.php | 4 ++-- app/Views/claims_dash.php | 12 ++++++------ app/Views/client_onboarding.php | 4 ---- app/Views/endorsement_dash.php | 20 ++++++++++++-------- app/Views/hr_access_controll.php | 8 ++++---- app/Views/layout/header.php | 4 ++++ app/Views/leads_dash.php | 8 ++++---- app/Views/ticket_list.php | 2 +- 11 files changed, 41 insertions(+), 39 deletions(-) diff --git a/app/Controllers/ThzController.php b/app/Controllers/ThzController.php index fd2f424f..8eac6932 100644 --- a/app/Controllers/ThzController.php +++ b/app/Controllers/ThzController.php @@ -128,7 +128,7 @@ class ThzController extends BaseController public function ticketConversationSaveNotification($data){ } - + public function ticketAssigning(){ $returnType = strtolower($this->request->getGet('return_type') ?? 'api'); diff --git a/app/Helpers/header.php b/app/Helpers/header.php index 2ade2b0b..dc193798 100755 --- a/app/Helpers/header.php +++ b/app/Helpers/header.php @@ -267,7 +267,6 @@ .right-bar { - width: 300px; /* Adjust as needed */ overflow: hidden; } diff --git a/app/Views/DashBoard.php b/app/Views/DashBoard.php index b9e1294c..e3c54d7d 100755 --- a/app/Views/DashBoard.php +++ b/app/Views/DashBoard.php @@ -381,15 +381,14 @@ $(document).ready(function(){ + + + + + + - - \ No newline at end of file From 800486037748e62df9332489407f9662a43d1cab Mon Sep 17 00:00:00 2001 From: vadivelJ96 Date: Thu, 21 Aug 2025 16:52:22 +0530 Subject: [PATCH 19/54] CHANGE_TICKETING_SYSTEM - VADIVEL J 2025-08-21 --- app/Controllers/ThzController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Controllers/ThzController.php b/app/Controllers/ThzController.php index 90e039f6..ba25efb8 100644 --- a/app/Controllers/ThzController.php +++ b/app/Controllers/ThzController.php @@ -109,7 +109,7 @@ class ThzController extends BaseController $data = $this->request->getPost(); - $data['notes_type'] = $data['notes_ticket_type'] ?? 'External' ; + $data['notes_type'] = $data['notes_type'] ?? 'External' ; $result = $this->thzMasterNotesModel->insert($data); @@ -161,12 +161,12 @@ class ThzController extends BaseController public function ticketConversationList(){ $data = $this->request->getGet(); - $data = $this->request->getGet(); + $returnType = strtolower($this->request->getGet('return_type') ?? 'api'); $thz_id = $data['thz_id'] ?? null; - $ticketType = $data['notes_ticket_type'] ?? 'External' ; + $ticketType = $data['notes_type'] ?? 'External' ; if($thz_id){ $result['master'] = $this->thzMasterModel From 944f4c1f81ecbfaad0981f1f5e661f9c1e937635 Mon Sep 17 00:00:00 2001 From: venba-Inspriron-3558 Date: Thu, 21 Aug 2025 16:53:25 +0530 Subject: [PATCH 20/54] FIX_TKT notes alignment --- app/Views/thz_notes.php | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/app/Views/thz_notes.php b/app/Views/thz_notes.php index c558e88e..bd524ada 100644 --- a/app/Views/thz_notes.php +++ b/app/Views/thz_notes.php @@ -199,19 +199,19 @@
+
+ + + +
- - - - - - -
- - -
- + +
+ + +
+
@@ -403,7 +403,6 @@ success: function(response) { if (response.status === "success") { toastr.success(response.message, 'success'); - $('#ticketModal').modal('hide'); form.reset(); window.location.href = "" + id; } else { From 694bf4767e07da6b5b533a60e406db4beb0c5806 Mon Sep 17 00:00:00 2001 From: venba-Inspriron-3558 Date: Thu, 21 Aug 2025 17:16:16 +0530 Subject: [PATCH 21/54] BUG_in ticket fix --- app/Models/ThzMasterNotesModel.php | 3 ++- app/Views/thz_notes.php | 16 ++++++---------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/app/Models/ThzMasterNotesModel.php b/app/Models/ThzMasterNotesModel.php index 8654a936..d2a7191f 100644 --- a/app/Models/ThzMasterNotesModel.php +++ b/app/Models/ThzMasterNotesModel.php @@ -88,6 +88,7 @@ class ThzMasterNotesModel extends Model $ticketTypeFilter = "AND ( thz_master_notes.notes_type = 'External' OR thz_master_notes.notes_type = 'Internal' ) "; } + $integer_ticket_id = (int)$thz_id; $notes_sql = "SELECT thz_master_notes.*, @@ -105,7 +106,7 @@ class ThzMasterNotesModel extends Model LEFT JOIN thz_master ON thz_master.thz_id = thz_master_notes.thz_id AND LOWER(thz_master_notes.notes_by) = 'user' - WHERE thz_master_notes.thz_id = '. (int)$thz_id .' + WHERE thz_master_notes.thz_id = ". $integer_ticket_id ." $ticketTypeFilter ORDER BY thz_master_notes.created_at ASC"; diff --git a/app/Views/thz_notes.php b/app/Views/thz_notes.php index bd524ada..7cc9747a 100644 --- a/app/Views/thz_notes.php +++ b/app/Views/thz_notes.php @@ -232,7 +232,7 @@