From 52eebcab67ba372c11b30bdb3510a3fa8f13f455 Mon Sep 17 00:00:00 2001 From: Venkatesh Date: Tue, 30 Jun 2026 17:22:08 +0530 Subject: [PATCH] CHANGE_OPD_CLAIM_TYPE --- app/Controllers/EmployeeRestController.php | 12 ++++++------ app/Controllers/TicketController.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/Controllers/EmployeeRestController.php b/app/Controllers/EmployeeRestController.php index ee3caadd..606460f0 100755 --- a/app/Controllers/EmployeeRestController.php +++ b/app/Controllers/EmployeeRestController.php @@ -2586,8 +2586,8 @@ class EmployeeRestController extends AdminController } $claim_type = $this->ticketController->claimType; - unset($claim_type[1][2]); - unset($claim_type[1][4]); + // unset($claim_type[1][2]); + // unset($claim_type[1][4]); $data['claim_type'] = $claim_type; return $this->respond(['status' => (count($data) ? 'success' : 'failed'), 'code' => (count($data) ? 200 : 404), 'data' => $data], 200); @@ -4109,8 +4109,8 @@ class EmployeeRestController extends AdminController $ticket_type = $this->ticketController->ticketType; $claim_type = $this->ticketController->claimType; - unset($claim_type[1][2]); - unset($claim_type[1][4]); + // unset($claim_type[1][2]); + // unset($claim_type[1][4]); $ticket_type = array_map(fn($value, $key) => (object) ['id' => $key, 'name' => $value], array_values($ticket_type), array_keys($ticket_type)); return $this->response->setJSON(['ticket_type' => $ticket_type, 'claim_type' => $claim_type])->setStatusCode(200); @@ -4143,8 +4143,8 @@ class EmployeeRestController extends AdminController $ticket_type = $this->ticketController->ticketType; $claim_type = $this->ticketController->claimType; - unset($claim_type[1][2]); - unset($claim_type[1][4]); + // unset($claim_type[1][2]); + // unset($claim_type[1][4]); $filtered = []; diff --git a/app/Controllers/TicketController.php b/app/Controllers/TicketController.php index 8da4c33d..0200523b 100644 --- a/app/Controllers/TicketController.php +++ b/app/Controllers/TicketController.php @@ -822,7 +822,7 @@ class TicketController extends BaseController $data['extra_fields'] = $this->getExtraFields($data['claim_status']); $data['extra_fields_array_for_validate'] = $this->getExtraFields($data['claim_status'], 1); - if ($ticket_type == 1) { + if ($ticket_type == 1 || $ticket_type == 72) { $data['claim_type'] = $this->claimType[1]; } else { $data['claim_type'] = $this->claimType[2];