From b1028f858b0e8df2b9ef282687989bd951d136a8 Mon Sep 17 00:00:00 2001 From: "venkatesh.r" Date: Tue, 11 Feb 2025 09:41:24 +0530 Subject: [PATCH] CHANGE_CLAIM_MODULE_CHANGES_HEAD_APPROVE : RV --- app/Controllers/TicketController.php | 39 ++++++++++++++++++++++++++++ app/Views/ticket_edit_onbording.php | 8 +++--- app/Views/ticket_form_gmc.php | 2 +- app/Views/ticket_list.php | 23 ++++++++++++++-- 4 files changed, 65 insertions(+), 7 deletions(-) diff --git a/app/Controllers/TicketController.php b/app/Controllers/TicketController.php index 78023e93..25b85b07 100644 --- a/app/Controllers/TicketController.php +++ b/app/Controllers/TicketController.php @@ -387,6 +387,42 @@ class TicketController extends BaseController $ticket_data['date_of_intimat'] = change_date_format($ticket_data['date_of_intimat'], null, $out_put_format); } + if (empty($ticket_data['raised_date'])) { + $ticket_data['raised_date'] = null; + } else { + $ticket_data['raised_date'] = change_date_format($ticket_data['raised_date'], null, $out_put_format); + } + + if (empty($ticket_data['registration_date'])) { + $ticket_data['registration_date'] = null; + } else { + $ticket_data['registration_date'] = change_date_format($ticket_data['registration_date'], null, $out_put_format); + } + + if (empty($ticket_data['query_received_date'])) { + $ticket_data['query_received_date'] = null; + } else { + $ticket_data['query_received_date'] = change_date_format($ticket_data['query_received_date'], null, $out_put_format); + } + + if (empty($ticket_data['denial_date'])) { + $ticket_data['denial_date'] = null; + } else { + $ticket_data['denial_date'] = change_date_format($ticket_data['denial_date'], null, $out_put_format); + } + + if (empty($ticket_data['approved_date'])) { + $ticket_data['approved_date'] = null; + } else { + $ticket_data['approved_date'] = change_date_format($ticket_data['approved_date'], null, $out_put_format); + } + + if (empty($ticket_data['settled_date'])) { + $ticket_data['settled_date'] = null; + } else { + $ticket_data['settled_date'] = change_date_format($ticket_data['settled_date'], null, $out_put_format); + } + return $ticket_data; } @@ -814,6 +850,7 @@ class TicketController extends BaseController ORDER BY th.created_at DESC"; $data = $this->ticketHistoryModel->query($sql)->getResultArray(); + dd($data, db_connect()->getLastQuery()); $priorityType = $this->priorityType; $relationshipType = $this->relationshipType; $modeOFIntimate = $this->modeOFIntimate; @@ -867,6 +904,8 @@ class TicketController extends BaseController } } + dd($data); + return ($data); } diff --git a/app/Views/ticket_edit_onbording.php b/app/Views/ticket_edit_onbording.php index 1cbbb5ff..df9b3dd8 100644 --- a/app/Views/ticket_edit_onbording.php +++ b/app/Views/ticket_edit_onbording.php @@ -211,14 +211,14 @@ function setMemberData(input) {is_head_approved function showConfirmationModal(event) { Swal.fire({ - title: "Approve or Reject the rejected claim", - text: "Do you want to save this?", + title: "Approve Claim Rejection", + // text: "Do you want to save this?", icon: "warning", showCancelButton: true, showDenyButton: true, confirmButtonColor: "#3085d6", - cancelButtonColor: "#d33", - denyButtonColor: "#6c757d", + cancelButtonColor: "#6c757d", + denyButtonColor: "#d33", confirmButtonText: "Approve", denyButtonText: "Reject", cancelButtonText: "Cancel" diff --git a/app/Views/ticket_form_gmc.php b/app/Views/ticket_form_gmc.php index 7162e546..196d4a9b 100644 --- a/app/Views/ticket_form_gmc.php +++ b/app/Views/ticket_form_gmc.php @@ -298,7 +298,7 @@
- Rejected Approve + Approve Claim Rejection
diff --git a/app/Views/ticket_list.php b/app/Views/ticket_list.php index 00352251..45140ea8 100644 --- a/app/Views/ticket_list.php +++ b/app/Views/ticket_list.php @@ -68,12 +68,31 @@ table.dataTable tbody td { $row){ ?> - + + + '; + echo $row['status'] . ' '; } elseif ($row['is_head_approved'] == 1) { echo $row['status'] . ' '; } elseif ($row['is_head_approved'] == 2) {