FIX_ISSUES
This commit is contained in:
parent
3e0311b27b
commit
6fcd264975
@ -2292,6 +2292,7 @@ class ClientController extends AdminController
|
||||
$data['issuer'] = 2;
|
||||
$data['status'] = 'completed';
|
||||
$data['renewal_date'] = $data['policy_end_date'];
|
||||
$data['bro_payable_by'] = 1;
|
||||
$insert = $this->policyTransactionModel->insert($data);
|
||||
|
||||
if($insert){
|
||||
|
||||
@ -4616,9 +4616,7 @@ class EmployeeRestController extends AdminController
|
||||
$employeeController = new EmployeeController();
|
||||
$responce = $employeeController->employeesUplodWithEvents($post_data);
|
||||
// print_r($responce); die;
|
||||
|
||||
$file_data = $this->getDataFromHrFilesTable(['hr_id' => $post_data['created_by']]);
|
||||
$responce['data'] = $file_data;
|
||||
|
||||
return $responce;
|
||||
|
||||
// if(isset($responce['file_id'])){
|
||||
|
||||
@ -1073,6 +1073,10 @@
|
||||
$('#policy_start_date').val(res.data.policy_start_date);
|
||||
$('#policy_end_date').val(res.data.policy_end_date);
|
||||
$('#insurer_id').val(res.data.insurer_branch_id + '-' + res.data.insurer_id);
|
||||
$('#client_type').addClass('readonly-select ');
|
||||
$('#client_id').addClass('readonly-select ').select2('destroy');
|
||||
$('#client_branch_id').addClass('readonly-select ').select2('destroy');
|
||||
$('#client_policy_id').addClass('readonly-select ').select2('destroy');
|
||||
}, 1500)
|
||||
|
||||
$('#policy_no').val(res.data.policy_no);
|
||||
|
||||
@ -2255,7 +2255,7 @@
|
||||
var page_title = 'Edit Policy' + (res.data.client_short_name || res.data.policy_type || res.data.policy_no ?
|
||||
' - ' + [res.data.client_short_name, res.data.policy_type, res.data.policy_no]
|
||||
.filter(Boolean).join('-') : '');
|
||||
|
||||
|
||||
$('#page_title').text(page_title);
|
||||
$('#client_id_kyc').val(res.data.client_id);
|
||||
$('#policy_tranction_primarykey_for_file_upload').val(res.data.id);
|
||||
@ -2384,6 +2384,9 @@
|
||||
$('#table_tr_37').hide();
|
||||
}
|
||||
|
||||
$('#client_id').addClass('readonly-select ').select2('destroy');
|
||||
$('#client_branch_id').addClass('readonly-select ').select2('destroy');
|
||||
|
||||
}, 4000)
|
||||
|
||||
// Set additional fields
|
||||
@ -2485,7 +2488,7 @@
|
||||
// } else {
|
||||
// $('#bro_payable_by').prop('checked', false);
|
||||
// }
|
||||
$('#bro_payable_by').val(res.data.bro_payable_by);
|
||||
$('#bro_payable_by').val(res.data.bro_payable_by ?? 1);
|
||||
|
||||
// Policy transaction status handling
|
||||
if (res.data.status == "completed") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user