FIX_CLAIM_API : RV
This commit is contained in:
parent
e19cc5d695
commit
13c5279fe1
@ -3103,6 +3103,7 @@ class EmployeeRestController extends AdminController
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Get Data from post for inserting ticket and message
|
//Get Data from post for inserting ticket and message
|
||||||
public function initiateClaim()
|
public function initiateClaim()
|
||||||
{
|
{
|
||||||
@ -3224,7 +3225,7 @@ class EmployeeRestController extends AdminController
|
|||||||
$ticket_type = $this->ticketController->ticketType;
|
$ticket_type = $this->ticketController->ticketType;
|
||||||
$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));
|
||||||
// print_r($ticket_type); die;
|
// print_r($ticket_type); die;
|
||||||
return $ticket_type;
|
return $this->response->setJSON(['ticket_type' => $ticket_type])->setStatusCode(200);
|
||||||
}
|
}
|
||||||
|
|
||||||
//ticket data
|
//ticket data
|
||||||
@ -3236,6 +3237,8 @@ class EmployeeRestController extends AdminController
|
|||||||
$relationshipType = $this->ticketController->relationshipType;
|
$relationshipType = $this->ticketController->relationshipType;
|
||||||
|
|
||||||
$emp_id = $this->request->getGet('emp_id');
|
$emp_id = $this->request->getGet('emp_id');
|
||||||
|
$ticket_type = $this->request->getGet('ticket_type') ?? null;
|
||||||
|
$ticket_id = $this->request->getGet('ticket_id') ?? null;
|
||||||
// dd($emp_id);
|
// dd($emp_id);
|
||||||
|
|
||||||
if (empty($emp_id)) {
|
if (empty($emp_id)) {
|
||||||
@ -3243,7 +3246,7 @@ class EmployeeRestController extends AdminController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$TicketMasterModel = new TicketMasterModel();
|
$TicketMasterModel = new TicketMasterModel();
|
||||||
$ticket_data = $TicketMasterModel->get_ticket_data($emp_id);
|
$ticket_data = $TicketMasterModel->get_ticket_data($emp_id, $ticket_type, $ticket_id);
|
||||||
|
|
||||||
if (!empty($ticket_data)) {
|
if (!empty($ticket_data)) {
|
||||||
|
|
||||||
@ -3275,8 +3278,7 @@ class EmployeeRestController extends AdminController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// print_rr($ticket_data); die;
|
return $this->response->setJSON(['ticket_data' => $ticket_data])->setStatusCode(200);
|
||||||
return $ticket_data;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user