FIX_BASE_POLICY_COPY_ISSUSE : RV
This commit is contained in:
parent
feaacf0e63
commit
af60193c58
@ -764,25 +764,25 @@ class ClientController extends AdminController
|
||||
|
||||
$policy_terms = $this->clientPolicyModel->where('id', $this->request->getPost('base_policy'))->first();
|
||||
|
||||
if ( $this->request->getPost('is_addon') == 2 || $this->request->getPost('is_addon') == 3) {
|
||||
if ($this->request->getPost('is_addon') == 3) {
|
||||
$policyTerm = $policy_terms['policy_terms'];
|
||||
$decoded_policyTerm = json_decode($policyTerm, true);
|
||||
$decoded_policyTerm['family_floater'] =0;
|
||||
$decoded_policyTerm['family_floaters']['self'] =0;
|
||||
$decoded_policyTerm['family_floaters']['spouse'] =0;
|
||||
$decoded_policyTerm['family_floaters']['childrens'] =0;
|
||||
$decoded_policyTerm['family_floaters']['parents'] =0;
|
||||
$decoded_policyTerm['family_floaters']['parents-in-law'] =0;
|
||||
$decoded_policyTerm['family_floaters']['either-parents-pil'] =0;
|
||||
// if ( $this->request->getPost('is_addon') == 2 || $this->request->getPost('is_addon') == 3) {
|
||||
// if ($this->request->getPost('is_addon') == 3) {
|
||||
// $policyTerm = $policy_terms['policy_terms'];
|
||||
// $decoded_policyTerm = json_decode($policyTerm, true);
|
||||
// $decoded_policyTerm['family_floater'] =0;
|
||||
// $decoded_policyTerm['family_floaters']['self'] =0;
|
||||
// $decoded_policyTerm['family_floaters']['spouse'] =0;
|
||||
// $decoded_policyTerm['family_floaters']['childrens'] =0;
|
||||
// $decoded_policyTerm['family_floaters']['parents'] =0;
|
||||
// $decoded_policyTerm['family_floaters']['parents-in-law'] =0;
|
||||
// $decoded_policyTerm['family_floaters']['either-parents-pil'] =0;
|
||||
|
||||
$data['policy_terms'] = json_encode($decoded_policyTerm);
|
||||
} else {
|
||||
$data['policy_terms'] = $policy_terms['policy_terms'];
|
||||
}
|
||||
// $data['policy_terms'] = json_encode($decoded_policyTerm);
|
||||
// } else {
|
||||
// $data['policy_terms'] = $policy_terms['policy_terms'];
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
// dd($data);
|
||||
$data['updated_by'] = get_session_userid();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user