From efafd8fd7573f8ed8633fd98a5ca1eacc0f10432 Mon Sep 17 00:00:00 2001 From: venba-Inspriron-3558 Date: Sat, 6 Sep 2025 14:25:27 +0530 Subject: [PATCH] FIX_Motor Claims 2 --- app/Controllers/TicketController.php | 11 ++- app/Views/ticket_form_motor.php | 122 +++++++++++++-------------- 2 files changed, 66 insertions(+), 67 deletions(-) diff --git a/app/Controllers/TicketController.php b/app/Controllers/TicketController.php index 9a45d372..79579835 100644 --- a/app/Controllers/TicketController.php +++ b/app/Controllers/TicketController.php @@ -713,7 +713,10 @@ class TicketController extends BaseController $claim_status_id = 25; }else if($ticket_type == 4){ $claim_status_id = 35; - }else{ + }else if($ticket_type == 8){ + $claim_status_id = 62; + } + else{ $claim_status_id = 1; } } @@ -869,7 +872,7 @@ class TicketController extends BaseController } public function view_ticket($ticket_id) - { + { // $ticket_data = $this->ticketMasterModel->where('id', $ticket_id)->where('is_active', 1)->first(); $ticket_data = $this->ticketMasterModel->getTicketDataByTicketID($ticket_id); if($ticket_data['ticket_type_id'] == 8){ @@ -950,10 +953,10 @@ class TicketController extends BaseController $data['selected_ticket_type'] = $ticket_type; $data['ticket_type'] = [ 8 => 'Motor' ]; $data['ticket_data'] = $ticket_data; - // print_r($ticket_data);die; + // print_r($ticket_data);die; $data['claim_status'] = $this->transFormClaimStatus($claim_status_id, $ticket_type); $data['client_for_motor'] = $this->clientModel->select('id,client_name')->where('client_type', 2)->where('is_active', 1)->findAll(); - // print_r($data);die; + // print_r($data);die; return $this->loadLayout('ticket_form_motor', $data); } diff --git a/app/Views/ticket_form_motor.php b/app/Views/ticket_form_motor.php index bc2cdf81..6fbce922 100644 --- a/app/Views/ticket_form_motor.php +++ b/app/Views/ticket_form_motor.php @@ -89,8 +89,8 @@
- -
@@ -109,10 +109,10 @@
- - - - + + + +
@@ -182,21 +182,15 @@
@@ -354,7 +348,7 @@ - + -//