FEAT_RFQ_NONEB_RENEWAL_AND_ROLLOVER
This commit is contained in:
parent
5de9d6ffcd
commit
527c399cc6
@ -4737,12 +4737,12 @@ class ClientController extends AdminController
|
|||||||
// echo "File does not exist.";
|
// echo "File does not exist.";
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// $data = $this->leadsModel->where('leads.id', 115)->where('leads.is_active', 1)->first();
|
$data = $this->leadsModel->where('leads.id', 125)->where('leads.is_active', 1)->first();
|
||||||
// $RFQdata = $RFQModel->getRFQTableDataWithLeadIDAndType(115, 2);
|
$RFQdata = $RFQModel->getRFQTableDataWithLeadIDAndType(125, 2);
|
||||||
// Kint::dump($RFQdata['json']);
|
Kint::dump($RFQdata['json']);
|
||||||
// $returnData = $LeadsController->getPlacementJson($data);
|
$returnData = $LeadsController->getPlacementJson($data);
|
||||||
// $this->clientPolicyModel->where('id', 6050)->set('placement_json', $returnData)->update();
|
$this->clientPolicyModel->where('id', 6050)->set('placement_json', $returnData)->update();
|
||||||
// dd($returnData);
|
dd($returnData);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -549,7 +549,7 @@ class LeadsController extends BaseController
|
|||||||
|
|
||||||
// dd($lead_data);
|
// dd($lead_data);
|
||||||
|
|
||||||
if ($lead_data['lead_type'] == 2) {
|
if ($lead_data['lead_type'] != 1) {
|
||||||
$client_policy_data = $this->clientPolicyModel->where('is_active', 1)->where('id', $lead_data['source_policy_id'])->first();
|
$client_policy_data = $this->clientPolicyModel->where('is_active', 1)->where('id', $lead_data['source_policy_id'])->first();
|
||||||
$data['policy_terms'] = $client_policy_data['policy_terms'];
|
$data['policy_terms'] = $client_policy_data['policy_terms'];
|
||||||
}
|
}
|
||||||
@ -576,7 +576,7 @@ class LeadsController extends BaseController
|
|||||||
$data['subject'] = $this->transformMailContent($lead_data, $subject, $data['page_name']);
|
$data['subject'] = $this->transformMailContent($lead_data, $subject, $data['page_name']);
|
||||||
|
|
||||||
|
|
||||||
// dd($data);
|
|
||||||
if ($data['lead_data']['lead_form_type'] == 1) {
|
if ($data['lead_data']['lead_form_type'] == 1) {
|
||||||
|
|
||||||
$this->loadLayout('view_rfq.php', $data);
|
$this->loadLayout('view_rfq.php', $data);
|
||||||
@ -585,7 +585,7 @@ class LeadsController extends BaseController
|
|||||||
$data['occupancy'] = $this->occupancyModel->findAll();
|
$data['occupancy'] = $this->occupancyModel->findAll();
|
||||||
// dd($data['occupancy']);
|
// dd($data['occupancy']);
|
||||||
|
|
||||||
if($lead_data['lead_type'] == 2){
|
if($lead_data['lead_type'] != 1 && $data['rfq_count'] == 0){
|
||||||
$client_policy_data = $this->clientPolicyModel->where('is_active', 1)->where('id', $lead_data['source_policy_id'])->first();
|
$client_policy_data = $this->clientPolicyModel->where('is_active', 1)->where('id', $lead_data['source_policy_id'])->first();
|
||||||
$data['rfq_data']['json'] = $client_policy_data['placement_json'];
|
$data['rfq_data']['json'] = $client_policy_data['placement_json'];
|
||||||
}
|
}
|
||||||
@ -597,6 +597,7 @@ class LeadsController extends BaseController
|
|||||||
|
|
||||||
// $data['lead_register_data'] = json_decode($data['lead_data']['custom_fields']);
|
// $data['lead_register_data'] = json_decode($data['lead_data']['custom_fields']);
|
||||||
// dd($data['lead_register_data']);
|
// dd($data['lead_register_data']);
|
||||||
|
// dd($data);
|
||||||
$data['client_type'] = $this->clientType;
|
$data['client_type'] = $this->clientType;
|
||||||
$data['buisness_type'] = $this->buisnessType;
|
$data['buisness_type'] = $this->buisnessType;
|
||||||
$this->loadLayout('view_rfq_non_eb', $data);
|
$this->loadLayout('view_rfq_non_eb', $data);
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user