FEAT_RFQ_NONEB_RENEWAL_AND_ROLLOVER

This commit is contained in:
Srinivas-Saravanan 2025-03-27 19:25:56 +05:30
parent 5de9d6ffcd
commit 527c399cc6
3 changed files with 487 additions and 313 deletions

View File

@ -4737,12 +4737,12 @@ class ClientController extends AdminController
// echo "File does not exist.";
// }
// $data = $this->leadsModel->where('leads.id', 115)->where('leads.is_active', 1)->first();
// $RFQdata = $RFQModel->getRFQTableDataWithLeadIDAndType(115, 2);
// Kint::dump($RFQdata['json']);
// $returnData = $LeadsController->getPlacementJson($data);
// $this->clientPolicyModel->where('id', 6050)->set('placement_json', $returnData)->update();
// dd($returnData);
$data = $this->leadsModel->where('leads.id', 125)->where('leads.is_active', 1)->first();
$RFQdata = $RFQModel->getRFQTableDataWithLeadIDAndType(125, 2);
Kint::dump($RFQdata['json']);
$returnData = $LeadsController->getPlacementJson($data);
$this->clientPolicyModel->where('id', 6050)->set('placement_json', $returnData)->update();
dd($returnData);
}

View File

@ -549,7 +549,7 @@ class LeadsController extends BaseController
// 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();
$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']);
// dd($data);
if ($data['lead_data']['lead_form_type'] == 1) {
$this->loadLayout('view_rfq.php', $data);
@ -585,7 +585,7 @@ class LeadsController extends BaseController
$data['occupancy'] = $this->occupancyModel->findAll();
// 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();
$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']);
// dd($data['lead_register_data']);
// dd($data);
$data['client_type'] = $this->clientType;
$data['buisness_type'] = $this->buisnessType;
$this->loadLayout('view_rfq_non_eb', $data);

File diff suppressed because it is too large Load Diff