From 8a20d137a682824a180dc96e62983778a4d133d0 Mon Sep 17 00:00:00 2001 From: "venkatesh.r" Date: Fri, 22 Aug 2025 10:40:13 +0530 Subject: [PATCH 1/5] FIX_LIVE_ISSUE : RV --- app/Controllers/TicketController.php | 15 +++++++++------ app/Views/layout/header.php | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/app/Controllers/TicketController.php b/app/Controllers/TicketController.php index a50b55be..800f464b 100644 --- a/app/Controllers/TicketController.php +++ b/app/Controllers/TicketController.php @@ -2386,17 +2386,20 @@ class TicketController extends BaseController } // 5. Merge the Sum Insured value if the multiple sum insured exists - if(isset($data['multiple_sum_insured'])){ - if(isset($data['sumInsured2'])){ - $data['sumInsured2'] = $data['sumInsured2'] . ", " . implode(", ", $data['multiple_sum_insured']); - }else{ - $data['sum_insured'] = $data['sum_insured'] . ", " . implode(", ", $data['multiple_sum_insured']); + if (isset($data['multiple_sum_insured'])) { + + $multipleSumInsured = is_array($data['multiple_sum_insured']) ? $data['multiple_sum_insured'] : [$data['multiple_sum_insured']]; // force into array if string + + if (isset($data['sumInsured2'])) { + $data['sumInsured2'] .= ", " . implode(", ", $multipleSumInsured); + } else { + $data['sum_insured'] .= ", " . implode(", ", $multipleSumInsured); } + unset($data['multiple_sum_insured']); } // 6. Add the special condition to key value pair - if(!empty($data['special_condition_label'])){ foreach ($data['special_condition_label'] as $key => $value) { if($value != "" && $value != null) { diff --git a/app/Views/layout/header.php b/app/Views/layout/header.php index 712a44f1..dc34b27d 100755 --- a/app/Views/layout/header.php +++ b/app/Views/layout/header.php @@ -537,7 +537,7 @@ .show > .btn-ternary:dropdown-toggle:focus { box-shadow: 0 0 0 0.15rem rgba(226, 103, 40, 0.5); } - .btn-border-radius{ .border-radius: 10px !important; } + .btn-border-radius{ border-radius: 10px !important; } From 938279db0364f2ab329a9a0d58cd629cfe63f3a7 Mon Sep 17 00:00:00 2001 From: venba-Inspriron-3558 Date: Fri, 22 Aug 2025 12:04:42 +0530 Subject: [PATCH 2/5] BUG_Mentioned issues fixes --- app/Models/ThzMasterNotesModel.php | 2 +- app/Views/thz_list.php | 74 ++++++++++++++++++++---------- app/Views/thz_notes.php | 53 ++++++++++----------- 3 files changed, 78 insertions(+), 51 deletions(-) diff --git a/app/Models/ThzMasterNotesModel.php b/app/Models/ThzMasterNotesModel.php index 413781df..ac970b67 100644 --- a/app/Models/ThzMasterNotesModel.php +++ b/app/Models/ThzMasterNotesModel.php @@ -105,7 +105,7 @@ class ThzMasterNotesModel extends Model AND LOWER(thz_master_notes.notes_by) = 'user' WHERE thz_master_notes.thz_id = ". $integer_ticket_id ." $ticketTypeFilter - ORDER BY thz_master_notes.created_at ASC"; + ORDER BY thz_master_notes.created_at DESC"; $result = $this->db->query($notes_sql)->getResultArray(); diff --git a/app/Views/thz_list.php b/app/Views/thz_list.php index e711f27a..b56b45fd 100644 --- a/app/Views/thz_list.php +++ b/app/Views/thz_list.php @@ -80,6 +80,11 @@ tbody tr td:last-child { white-space: nowrap !important; } +.maincard{ + margin-top:0 !important; + padding-top: 0 !important; +} + .col-12 { max-width: 98% !important; @@ -122,8 +127,8 @@ td .text-muted {
-
-
+
+

Ticket List

@@ -155,7 +160,10 @@ td .text-muted {
- + + @@ -259,22 +267,23 @@ td .text-muted {
+
+ + +
+ +
-
- - -
- - - + +
+ +
- + - +
@@ -368,6 +378,11 @@ td .text-muted { myModal.show(); } + function resetTicket(){ + var form = document.getElementById('ticketForm'); + form.reset(); + } + function submitTicket() { var form = document.getElementById('ticketForm'); @@ -512,6 +527,19 @@ td .text-muted { var policyId = selectedOption.getAttribute("data-id"); document.getElementById('policy_id').value = policyId || ""; } + + function hideandshowpolicy() { + var select = document.getElementById('ticket_type').value; + var policyContainer = document.getElementById('policy_container'); + + if (select === 'Service') { + policyContainer.style.display = "block"; // show + } else { + policyContainer.style.display = "none"; // hide + document.getElementById('policy_no').value = ""; + document.getElementById('policy_id').value = ""; + } + } \ No newline at end of file diff --git a/app/Views/import_export.php b/app/Views/import_export.php index 7f2bc15d..65a30b3c 100755 --- a/app/Views/import_export.php +++ b/app/Views/import_export.php @@ -25,10 +25,17 @@ Insurer or TPA Data +
+
@@ -45,6 +52,11 @@ $('#kyc_tab').click(); } + if (window.location.hash === '#HR-DOC-tab') { + console.log('url hash :', window.location.hash) + $('#hr_tab').click(); + } + })