diff --git a/app/Controllers/EmployeeRestController.php b/app/Controllers/EmployeeRestController.php index bb64f69e..bbbc08fd 100755 --- a/app/Controllers/EmployeeRestController.php +++ b/app/Controllers/EmployeeRestController.php @@ -3653,6 +3653,9 @@ class EmployeeRestController extends AdminController if ($fetchData['ticket_type_id'] == 1 && !empty($fetchData['tpa_no'])) { $results = $claimStatusQuery->findAll(2); $fetchData['claim_status_id'] = $results[1]['id'] ?? $results[0]['id']; + } else if ($fetchData['ticket_type_id'] == 72 && !empty($fetchData['tpa_no'])) { + $results = $claimStatusQuery->findAll(2); + $fetchData['claim_status_id'] = $results[1]['id'] ?? $results[0]['id']; } else { $fetchData['claim_status_id'] = $claimStatusQuery->first()['id']; } @@ -3918,6 +3921,7 @@ class EmployeeRestController extends AdminController 1 => 2, 6 => 3, 7 => 4, + 72 => 72, ]; foreach ($policy_type_ids as $value) { diff --git a/app/Controllers/TicketController.php b/app/Controllers/TicketController.php index 73997e99..07b8db0e 100644 --- a/app/Controllers/TicketController.php +++ b/app/Controllers/TicketController.php @@ -76,7 +76,7 @@ class TicketController extends BaseController $this->ticketMasterModel = new TicketMasterModel(); - $this->ticketType = [1 => "Claim-GMC", 2 => "Claim-GPA", 3 => "EDLI", 4 => "GTLI", 8 => "Motor"]; + $this->ticketType = [1 => "Claim-GMC", 2 => "Claim-GPA", 3 => "EDLI", 4 => "GTLI", 8 => "Motor", 72 => "OPD"]; $this->priorityType = [ 1 => "Low", 2 => "Medium", @@ -287,7 +287,45 @@ class TicketController extends BaseController 13 => ['cancel_remark' => 'Cancel Remark'], 47 => ['cancel_remark' => 'Cancel Remark'], 53 => ['cancel_remark' => 'Cancel Remark'], - 58 => ['cancel_remark' => 'Cancel Remark'] + 58 => ['cancel_remark' => 'Cancel Remark'], + + + // OPD claim status + 67 => ['non_id_reason' => 'Non ID Reason'], + 69 => ['raised_date' => 'Raised Date'], + 70 => ['raised_date' => 'Raised Date'], + 71 => [ + 'claim_number' => 'Claim Number', + 'registration_date' => 'Registration Date' + ], + + 72 => ['query_received_date' => 'Query Received Date'], + 73 => [ + 'denial_reason' => 'Denial Reason', + 'denial_date' => 'Denial Date' + ], + 74 => [ + 'approved_amount' => 'Approved Amount', + 'approved_date' => 'Approved Date', + 'approved_letter' => 'Approved Letter', + 'approved_description' => 'Approved Description' + ], + + 75 => ['pay_initiate_date' => 'Payment Initiated Date'], + + 76 => [ + 'utr_details' => 'UTR Details', + 'settled_date' => 'Settled Date', + 'settle_letter' => 'Settle Letter' + ], + + 78 => ['cancel_remark' => 'Cancel Remark'], + + 79 => [ + 'return_remark' => 'Return Remark', + 'awb_no_courier_name' => 'AWB No Courier Name' + ], + ]; $this->nonIDReason = [ @@ -335,7 +373,12 @@ class TicketController extends BaseController 55 => [], 56 => [], 57 => [], - 60 => [] + 60 => [], + + 68 => [], + 77 => [], + 80 => [], + 81 => [], ]; $this->ticketMasterModel = new TicketMasterModel(); @@ -703,7 +746,8 @@ class TicketController extends BaseController 'priorityType' => $this->priorityType, 'relationshipType' => $this->relationshipType, 'modeOFIntimate' => $this->modeOFIntimate, - 'nonIDReason' => $this->nonIDReason + 'nonIDReason' => $this->nonIDReason, + 'claim_ticket_type_id' => $ticket_type ]; switch ($ticket_type) { @@ -719,6 +763,9 @@ class TicketController extends BaseController case 8: $data['ticket_form'] = 'Motor'; break; + case 72: + $data['ticket_form'] = 'OPD'; + break; } // Fetch ACM Users @@ -741,8 +788,9 @@ class TicketController extends BaseController $claim_status_id = 35; }else if($ticket_type == 8){ $claim_status_id = 62; - } - else{ + }else if($ticket_type == 72){ + $claim_status_id = 67; + }else{ $claim_status_id = 1; } } @@ -757,7 +805,9 @@ class TicketController extends BaseController $data['claim_type'] = $this->claimType[2]; } - $data['client_for_motor'] = $this->clientModel->select('id,client_name,phone')->where('client_type', 2)->where('is_active', 1)->findAll(); + if($ticket_type == 8){ + $data['client_for_motor'] = $this->clientModel->select('id,client_name,phone')->where('client_type', 2)->where('is_active', 1)->findAll(); + } $this->myLogger->logme('error', "Ticket form data fetched successfully for Ticket Type: $ticket_type"); @@ -2013,9 +2063,13 @@ class TicketController extends BaseController } } - if($lastMatchedStatus == 1){ + if($lastMatchedStatus == 1 || $lastMatchedStatus == 67){ if(!empty($incoming_form_values['tpa_no'])){ - $lastMatchedStatus = 2; + if($lastMatchedStatus == 1){ + $lastMatchedStatus = 2; + }else if($lastMatchedStatus == 67){ + $lastMatchedStatus = 68; + } } } diff --git a/app/Views/ticket_form_gmc.php b/app/Views/ticket_form_gmc.php index 1bf0da03..5d1ae008 100644 --- a/app/Views/ticket_form_gmc.php +++ b/app/Views/ticket_form_gmc.php @@ -38,7 +38,7 @@