CHANGE_OPD_CLAIM_TYPE
This commit is contained in:
parent
66a55f2951
commit
52eebcab67
@ -2586,8 +2586,8 @@ class EmployeeRestController extends AdminController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$claim_type = $this->ticketController->claimType;
|
$claim_type = $this->ticketController->claimType;
|
||||||
unset($claim_type[1][2]);
|
// unset($claim_type[1][2]);
|
||||||
unset($claim_type[1][4]);
|
// unset($claim_type[1][4]);
|
||||||
$data['claim_type'] = $claim_type;
|
$data['claim_type'] = $claim_type;
|
||||||
|
|
||||||
return $this->respond(['status' => (count($data) ? 'success' : 'failed'), 'code' => (count($data) ? 200 : 404), 'data' => $data], 200);
|
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;
|
$ticket_type = $this->ticketController->ticketType;
|
||||||
$claim_type = $this->ticketController->claimType;
|
$claim_type = $this->ticketController->claimType;
|
||||||
unset($claim_type[1][2]);
|
// unset($claim_type[1][2]);
|
||||||
unset($claim_type[1][4]);
|
// 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));
|
$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);
|
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;
|
$ticket_type = $this->ticketController->ticketType;
|
||||||
$claim_type = $this->ticketController->claimType;
|
$claim_type = $this->ticketController->claimType;
|
||||||
unset($claim_type[1][2]);
|
// unset($claim_type[1][2]);
|
||||||
unset($claim_type[1][4]);
|
// unset($claim_type[1][4]);
|
||||||
|
|
||||||
$filtered = [];
|
$filtered = [];
|
||||||
|
|
||||||
|
|||||||
@ -822,7 +822,7 @@ class TicketController extends BaseController
|
|||||||
$data['extra_fields'] = $this->getExtraFields($data['claim_status']);
|
$data['extra_fields'] = $this->getExtraFields($data['claim_status']);
|
||||||
$data['extra_fields_array_for_validate'] = $this->getExtraFields($data['claim_status'], 1);
|
$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];
|
$data['claim_type'] = $this->claimType[1];
|
||||||
} else {
|
} else {
|
||||||
$data['claim_type'] = $this->claimType[2];
|
$data['claim_type'] = $this->claimType[2];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user