MERGE_TEST_CLAIMS_ISSUE

This commit is contained in:
Venba 2025-03-14 03:24:43 +00:00
commit 8e5a7cc285
2 changed files with 19 additions and 17 deletions

View File

@ -4903,20 +4903,22 @@ class ClientController extends AdminController
$memberData = []; $memberData = [];
$dataForClientAndInsurer = []; $dataForClientAndInsurer = [];
$acms = db_connect()->table('user_profiles') // $acms = db_connect()->table('user_profiles')
->select('user_profiles.id, user_profiles.first_name') // ->select('user_profiles.id, user_profiles.first_name')
->where('user_profiles.is_active', 1) // ->where('user_profiles.is_active', 1)
->where('user_profiles.role', 3) // ->where('user_profiles.role', 3)
->get() // ->get()
->getResultArray(); // ->getResultArray();
if(!empty($data) && count($data) > 0){ if(!empty($data) && count($data) > 0){
$memberData = $this->employeeModel->getEmployeeByEmployeeCode($data['emp_code'], $data['policy_id'], $client_id); $memberData = $this->employeeModel->getEmployeeByEmployeeCode($data['emp_code'], $data['policy_id'], $client_id);
$acms_datas = $this->employeeModel->getAcmUsingClientID($data['client_id']); $acms_datas = $this->employeeModel->getAcmUsingClientID($data['client_id']);
if(!empty($acms_datas)){ // if(!empty($acms_datas)){
$acms = $acms_datas; // $acms = $acms_datas;
} // }
}else{
$acms_datas = "";
} }
@ -4933,7 +4935,7 @@ class ClientController extends AdminController
'type' => $type, 'type' => $type,
'dataForClientAndInsurer' => $dataForClientAndInsurer, 'dataForClientAndInsurer' => $dataForClientAndInsurer,
'memberData' => $memberData, 'memberData' => $memberData,
'acms' => $acms, 'acms' => $acms_datas,
], 200); ], 200);
} else { } else {
return $this->respond([ return $this->respond([
@ -4945,7 +4947,7 @@ class ClientController extends AdminController
'type' => $type, 'type' => $type,
'dataForClientAndInsurer' => $dataForClientAndInsurer, 'dataForClientAndInsurer' => $dataForClientAndInsurer,
'memberData' => $memberData, 'memberData' => $memberData,
'acms' => $acms 'acms' => $acms_datas
], 200); ], 200);
} }
} }

View File

@ -692,14 +692,14 @@ if (!isset($view_ticket_page)) {
function appendACMS(data) { function appendACMS(data) {
console.log(data); console.log("account manger data : ",data);
$('#acm_id').empty(); $('#acm_id').empty();
// $('#acm_id').append($('<option>', { $('#acm_id').append($('<option>', {
// value: '0', value: '',
// text: 'Select Account Manager' text: 'Select Account Manager'
// })); }));
$.each(data, function(index, item) { $.each(data, function(index, item) {
var option = $('<option>', { var option = $('<option>', {