CHANGE_OPD_CLAIM_TYPE

This commit is contained in:
VENKATESHWARAN 2026-06-30 17:22:08 +05:30
parent 66a55f2951
commit 52eebcab67
2 changed files with 7 additions and 7 deletions

View File

@ -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 = [];

View File

@ -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];