diff --git a/app/Controllers/EmployeeRestController.php b/app/Controllers/EmployeeRestController.php index 794ac929..4f590fbf 100755 --- a/app/Controllers/EmployeeRestController.php +++ b/app/Controllers/EmployeeRestController.php @@ -4986,6 +4986,7 @@ class EmployeeRestController extends AdminController $ticket_id = $this->request->getPost('ticket_id') ?? null; $get_file_data = $this->request->getFiles('claim_docs') ?? null; $get_docs_name = $this->request->getPost('claim_doc_names') ?? []; + $required_docs = $this->request->getPost('required_docs') ?? []; if (is_string($get_docs_name)) { $decoded = json_decode($get_docs_name, true); @@ -5003,6 +5004,7 @@ class EmployeeRestController extends AdminController $result = $this->handleCliamFiles($file_data, $ticket_id, null, false, true); if(!empty($result)){ + $this->ticketMaster->where('id', $ticket_id)->set(['required_docs', $required_docs])->update(); return $this->respond(['status' => true, 'code' => 200, 'message' => 'Files uploaded successfully'], 200); }else{ return $this->respond(['status' => false, 'code' => 400, 'message' => 'Failed to upload the file'], 200);