MERGE_UAT_CLAIMS_UAT_ISSUES
This commit is contained in:
commit
80e9b13121
@ -4910,16 +4910,10 @@ class ClientController extends AdminController
|
||||
if(!empty($data) && count($data) > 0){
|
||||
|
||||
$memberData = $this->employeeModel->getEmployeeByEmployeeCode($data['emp_code'], $data['policy_id'], $client_id);
|
||||
|
||||
$acms = $this->clientRMModel
|
||||
->select('user_profiles.id, user_profiles.first_name')
|
||||
->join('clients', 'client_rm.client_id = clients.id', 'left')
|
||||
->join('user_profiles', 'client_rm.user_id = user_profiles.id', 'left')
|
||||
->where('clients.is_active', 1)
|
||||
->where('client_rm.is_active', 1)
|
||||
->where('user_profiles.is_active', 1)
|
||||
->where('clients.id', $data['client_id'])
|
||||
->findAll();
|
||||
$acms_datas = $this->employeeModel->getAcmUsingClientID($data['client_id']);
|
||||
if(!empty($acms_datas)){
|
||||
$acms = $acms_datas;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -433,7 +433,7 @@ class PolicyTransactionController extends BaseController
|
||||
'pt_id' => $pt_id,
|
||||
'insurer_id' => $insurer_id ?? 0,
|
||||
'insurer_branch_id' => $insurer_branch_id ?? 0,
|
||||
'co_share_type' => $data['co_share_type'][$index] ?? null,
|
||||
'co_share_type' => $data['co_share_type'][$index] ?? 1,
|
||||
'co_share_per' => $data['co_share_per'][$index] ?? 0,
|
||||
'bp_amt' => $data['base_premium'][$index] ?? 0,
|
||||
'bp_gst_amt' => $data['gst_amount'][$index] ?? 0,
|
||||
@ -1607,8 +1607,15 @@ class PolicyTransactionController extends BaseController
|
||||
->where('policy_transaction.action_type', 'inception')
|
||||
->findAll();
|
||||
|
||||
$is_copay_yes = $this->policyTransactionModel
|
||||
->where('client_id', $client_id)
|
||||
->where('client_policy_id', $client_policy_id)
|
||||
->where('action_type', 'inception')
|
||||
->where('is_active', 1)
|
||||
->first();
|
||||
|
||||
if ($totalCount) {
|
||||
return $this->respond(['status' => true, 'code' => 200, 'data' => $totalCount], 200);
|
||||
return $this->respond(['status' => true, 'code' => 200, 'data' => $totalCount, 'is_copay_yes' => $is_copay_yes], 200);
|
||||
} else {
|
||||
return $this->respond(['status' => false, 'code' => 404, 'message' => 'Failed to get data'], 200);
|
||||
}
|
||||
|
||||
@ -456,8 +456,9 @@ class TicketController extends BaseController
|
||||
if (!empty($ticket_data['client_policy_id'])){
|
||||
$ticket_data['client_policy_id_text'] = $this->clientPolicyModel->select('concat(policy_type.policy_type,"-",client_policy.policy_no) as client_policy_name')->join('policy_type','policy_type.id = client_policy.policy_type_id and policy_type.is_active = 1')->where('client_policy.id',$ticket_data['client_policy_id'])->first()['client_policy_name'];
|
||||
}
|
||||
// dd($ticket_data);
|
||||
// dd($data);
|
||||
$data['ticket_data'] = $ticket_data;
|
||||
$data['acms'] = $this->employeeModel->getAcmUsingClientID($ticket_data['client_id']);
|
||||
|
||||
// dd($data);
|
||||
|
||||
@ -853,15 +854,7 @@ class TicketController extends BaseController
|
||||
$replaceData = $ticket_data[$value] ?? '';
|
||||
} else if ($value == "policy_type") {
|
||||
$replaceData = str_replace("Claim-", "", $this->ticketType[$ticket_data['ticket_type_id']] ?? "");
|
||||
} else if ($value == 'emp_name'){
|
||||
if(empty($ticket_data['emp_id'])){
|
||||
$replaceData = $ticket_data['emp_name']??"";
|
||||
}
|
||||
}else if ($value == 'insured_name'){
|
||||
if(empty($ticket_data['insured_emp_id'])){
|
||||
$replaceData = $ticket_data['insured_name']?? "";
|
||||
}
|
||||
}else {
|
||||
} else {
|
||||
$replaceData = isset($ticket_data[$value]) ? $ticket_data[$value] : '';
|
||||
}
|
||||
|
||||
|
||||
@ -287,5 +287,21 @@ class EmployeeModel extends Model
|
||||
|
||||
}
|
||||
|
||||
public function getAcmUsingClientID($client_id)
|
||||
{
|
||||
return $this->db->table('client_rm')
|
||||
->select('user_profiles.id, user_profiles.first_name')
|
||||
->join('user_profiles', 'client_rm.user_id = user_profiles.id')
|
||||
->where([
|
||||
'client_rm.level' => 3,
|
||||
'user_profiles.role' => 3,
|
||||
'client_rm.is_active' => 1,
|
||||
'user_profiles.is_active' => 1,
|
||||
'client_rm.client_id' => $client_id
|
||||
])
|
||||
->get()
|
||||
->getResultArray();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -58,6 +58,7 @@
|
||||
<!-- end -->
|
||||
|
||||
<script>
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
// $('#ticket_mail_auto_query_customButton').select2();
|
||||
@ -99,13 +100,8 @@
|
||||
toastr.warning('Please focus on the text area first', 'Warning');
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
// $("#ticket_mail_auto_query_customButton").change(function (){
|
||||
// event.stopPropagation();
|
||||
// })
|
||||
|
||||
$(document).ready(function() {
|
||||
// --------------------------------------------------------------------------------------------------------------
|
||||
|
||||
url = '<?= base_url('ticket/note/1') ?>';
|
||||
data = {
|
||||
@ -119,7 +115,11 @@
|
||||
success: function(res) {
|
||||
console.log('auto query res', res)
|
||||
if (res.status == true) {
|
||||
$('.jodit-wysiwyg').html(res.data.note);
|
||||
|
||||
$('#ticket_auto_query_note').val(res.data.note);
|
||||
if (auto_query_editor) {
|
||||
auto_query_editor.value = res.data.note;
|
||||
}
|
||||
$('#query_note_id').val(res.data.id);
|
||||
}
|
||||
},
|
||||
@ -162,22 +162,24 @@
|
||||
})
|
||||
console.log(formData);
|
||||
sendAjaxRequestForGlobal(url, 'POST', formData, function(response) {
|
||||
|
||||
if (response.status == true) {
|
||||
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.success('Note Added Successfully', 'Success');
|
||||
// console.log("Respone id is ")
|
||||
// console.log(response.id);
|
||||
$('#query_note_id').val(response.id);
|
||||
|
||||
|
||||
} else {
|
||||
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
let message = response.message;
|
||||
toastr.error(message, 'ERROR');
|
||||
}
|
||||
|
||||
window.location.reload();
|
||||
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
|
||||
@ -96,7 +96,13 @@ $(document).ready(function() {
|
||||
|
||||
const editor = Jodit.make("#ticket_mail_editor", editorConfig);
|
||||
var mail_content = `<?=isset($reply_data['mail_content'])?$reply_data['mail_content']:'' ?>`;
|
||||
$('.jodit-wysiwyg').html(mail_content);
|
||||
// console.log(mail_content);
|
||||
|
||||
if (editor) {
|
||||
editor.value = mail_content;
|
||||
}
|
||||
|
||||
// $('.jodit-wysiwyg').html(mail_content);
|
||||
|
||||
let lastActiveField = null;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user