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){
|
||||
|
||||
@ -4617,8 +4617,6 @@ class EmployeeRestController extends AdminController
|
||||
$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);
|
||||
|
||||
@ -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