FIX_RFQ_PLACEMENT_NOT_SENT_ISSUE
This commit is contained in:
parent
3717c788f8
commit
38e218f585
@ -2126,6 +2126,7 @@ class LeadsController extends BaseController
|
||||
$data = $this->convertJsonForQCR($data, $type);
|
||||
} // dd($data);
|
||||
|
||||
$lead_data = [];
|
||||
if ($rfq_data['lead_type'] == 1) {
|
||||
|
||||
if (in_array($rfq_data['policy_type_id'], [2, 3, 4, 5])) {
|
||||
@ -2152,6 +2153,12 @@ class LeadsController extends BaseController
|
||||
// 'TPA' => $rfq_data['tpa_name'] ?? " - ",
|
||||
'Policy Type' => $this->leadType[$rfq_data['lead_type']] ?? "",
|
||||
];
|
||||
}else {
|
||||
|
||||
$lead_data = [
|
||||
'Insured' => $rfq_data['client_name'],
|
||||
'Policy Type' => $this->leadType[$rfq_data['lead_type']] ?? ""
|
||||
];
|
||||
}
|
||||
|
||||
} else {
|
||||
@ -2239,6 +2246,11 @@ class LeadsController extends BaseController
|
||||
// 'TPA' => $rfq_data['tpa_name'] ?? " - ",
|
||||
// 'Total Lives at Inception' => $rfq_data['total_lives_at_incept'],
|
||||
];
|
||||
} else {
|
||||
$lead_data = [
|
||||
'Insured' => $rfq_data['client_name'],
|
||||
'Policy Type' => $this->leadType[$rfq_data['lead_type']] ?? ""
|
||||
];
|
||||
}
|
||||
}
|
||||
// print_r($lead_data); die;
|
||||
@ -2274,6 +2286,9 @@ class LeadsController extends BaseController
|
||||
$maxWidthA = 0;
|
||||
$maxWidthB = 0;
|
||||
|
||||
// dd($lead_data);
|
||||
|
||||
if(! empty($lead_data)) {
|
||||
foreach ($lead_data as $key => $value) {
|
||||
|
||||
// Merge A:B for key and C:D for value
|
||||
@ -2308,6 +2323,7 @@ class LeadsController extends BaseController
|
||||
|
||||
$rowNumber++;
|
||||
}
|
||||
}
|
||||
|
||||
// Set column width based on max content length (adjusted for padding)
|
||||
$sheet->getColumnDimension('A')->setWidth($maxWidthA * 1.2);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user