FIX_INSURER_ALIGNMENT_SRI
This commit is contained in:
parent
6875825a8f
commit
45eeef869b
@ -557,7 +557,7 @@ class LeadsController extends BaseController
|
||||
$data['insurer'] = $this->insurerBranchModel->getInsurerBranchesWithInsurerNames();
|
||||
$data['userList'] = $this->userModel->getUserListForRFQ();
|
||||
$data['lead_data'] = $lead_data;
|
||||
|
||||
|
||||
$mail_content = "
|
||||
<p>Dear Sir,</p>
|
||||
<p>Greetings From Nhance India!</p>
|
||||
@ -575,46 +575,22 @@ class LeadsController extends BaseController
|
||||
|
||||
|
||||
// dd($data);
|
||||
if ($data['lead_id'] != 75){
|
||||
if ($data['lead_data']['lead_form_type'] == 1){
|
||||
|
||||
$this->loadLayout('view_rfq.php', $data);
|
||||
}else{
|
||||
|
||||
}else if ($data['lead_data']['lead_form_type'] == 2){
|
||||
|
||||
$this->viewNonEBRFQ($id);
|
||||
$data['policies'] = json_decode($data['question_json'], true)['policies'];
|
||||
$data["child_table_data"] = json_decode($data['question_json'], true)['child_table_data'];
|
||||
// dd($data);
|
||||
$data['client_type'] = $this->clientType;
|
||||
$this->loadLayout('view_rfq_non_eb', $data);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function viewNonEBRFQ($id){
|
||||
|
||||
$data['insurer'] = $this->insurerBranchModel->getInsurerBranchesWithInsurerNames();
|
||||
$lead_data = $this->leadsModel
|
||||
->select('
|
||||
leads.*,
|
||||
policy_type.question_json,
|
||||
policy_type.policy_type,
|
||||
policy_type.long_name,
|
||||
user_profiles.email as created_person_email
|
||||
')
|
||||
->join('policy_type', 'leads.policy_type_id = policy_type.id')
|
||||
->join('user_profiles', 'leads.created_by = user_profiles.id', 'left')
|
||||
->where('leads.id', $id)
|
||||
->where('leads.is_active', 1)
|
||||
->first();
|
||||
$data['lead_data'] = $lead_data;
|
||||
$data['client_type'] = $this->clientType;
|
||||
|
||||
$data['rfq_data'] = $this->RFQModel
|
||||
->where('lead_id', $id)
|
||||
// ->where('type', $type)
|
||||
->where('is_active', 1)
|
||||
->orderBy('id', 'desc')
|
||||
->first();
|
||||
|
||||
// dd($data);
|
||||
$this->loadLayout('view_rfq_non_eb', $data);
|
||||
}
|
||||
|
||||
public function createRFQ()
|
||||
{
|
||||
|
||||
@ -32,6 +32,11 @@
|
||||
<!-- Product selection Tab -->
|
||||
<div class="tab-pane fade show active" id="product-selection">
|
||||
<form id="productSelectionForm" class="parsley-examples" enctype="multipart/form-data">
|
||||
<div class="row">
|
||||
<div class="form-group col-md-3">
|
||||
<button type="button" class="btn btn-primary" id="getDataFromLead" onclick="assignLeadData()">Get Data From Lead</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-group col-md-3">
|
||||
<label>Select Buisness Type<span class="text-danger">*</span></label>
|
||||
@ -1157,4 +1162,12 @@
|
||||
//showRequiredFieldsBasedOnLocation();
|
||||
|
||||
}
|
||||
|
||||
function assignLeadData(){
|
||||
const lead_data = '<?= json_encode($lead_data['custom_fields']) ?>';
|
||||
|
||||
if (lead_data){
|
||||
console.log("Lead Data : ",lead_data);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user