FIX_The policy does not have a CD account number

This commit is contained in:
sanjeev.p 2025-12-11 15:23:11 +05:30
parent d3e155819d
commit 02ffc0cae9
3 changed files with 6 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class AppContentManagementController extends AdminController
->where('advertisement_images.is_active', 1)
->findAll();
$data['client'] = $this->clientModel->where('is_active', 1)->findAll();
$data['client'] = $this->clientModel->where('is_active', 1)->where('client_type', 1)->findAll();
// dd($data);

View File

@ -2308,6 +2308,10 @@ class EmployeeController extends AdminController
}
$message = isset($message) ? ($message . ' not defined for choosed policy') : null;
if ($policy_details['cd_ac_pk'] == null) {
$message = isset($message) ? ($message . ' The policy does not have a CD account number.') : null;
}
return $this->respond(['dataStatus' => true, 'code' => 200, 'message' => $message, 'si_enhancement' => $si_enhancement_true_or_false, 'insurer_multi_event' => $insurer_details['is_multi_event'], 'tpa_api_service_status' => $tpa_api_service_status], 200);
}

View File

@ -294,6 +294,7 @@ table.dataTable thead th {
$(document).ready(function() {
$('#add_image_id').val('');
$('#client_id').val('');
$('#client_id').select2();
$('#advertise_image').val('');
table = $('#tickets-table').DataTable({
// dom: "<'row'<'col-sm-1'f><'col-sm-11 text-right'B>>" + // Filter left, button right