CHANGE_NON_EB_PLACEMENT_MAIL_CC : RV
This commit is contained in:
parent
2f48da98cf
commit
f2e802adf7
@ -801,6 +801,18 @@ class LeadsController extends BaseController
|
||||
$qcr_created = true;
|
||||
}
|
||||
|
||||
if(($data['submit_type'] ?? "") == 'QCR'){
|
||||
$inputJson = json_decode($data['json'], true);
|
||||
$proposal_data = array_pop($inputJson);
|
||||
if(isset($proposal_data['proposal_data']['over_all_column_data'])){
|
||||
$proposel_count = $proposal_data['proposal_data']['over_all_column_data'];
|
||||
foreach ($proposel_count as $key => $value) {
|
||||
if(!empty($value['insurers'])){
|
||||
$qcr_created = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$data['type'] = 1;
|
||||
|
||||
@ -2342,8 +2354,8 @@ class LeadsController extends BaseController
|
||||
$data = [
|
||||
'proposel_data' => json_encode($lead_update_data),
|
||||
'status' => 'won',
|
||||
'placement_date' => change_date_format($params['placement_date'], 'd/m/Y', 'Y-m-d'),
|
||||
'payment_date' => change_date_format($params['payment_date'], 'd/m/Y', 'Y-m-d'),
|
||||
'placement_date' => date('Y-m-d', strtotime($params['placement_date']) ?? "") ?? null,
|
||||
'payment_date' => date('Y-m-d', strtotime($params['payment_date'] ?? "")) ?? null,
|
||||
'utr_no' => $params['utr_no'] ?? null,
|
||||
'is_cd' => $params['is_cd'] ?? null ,
|
||||
'premium_amount' => $params['premium_amount'] ?? null,
|
||||
|
||||
@ -426,27 +426,27 @@
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
<label for="utr_no">UTR No.</label>
|
||||
<input type="text" class="form-control" id="utr_no" name="utr_no" placeholder="Enter UTR No.">
|
||||
<input type="text" class="form-control" id="utr_no" name="utr_no" placeholder="Enter UTR No." value="<?= isset($lead_data['utr_no']) ? $lead_data['utr_no'] : "" ?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
<label for="placement_date">Placement Date</label>
|
||||
<input type="text" class="form-control" id="placement_date" name="placement_date" placeholder="DD/MM/YYY">
|
||||
<input type="text" class="form-control" id="placement_date" name="placement_date" placeholder="DD/MM/YYY" value="<?= isset($lead_data['placement_date']) ? date('d/m/Y', strtotime($lead_data['placement_date'])) : "" ?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
<label for="premium_amount">Premium Amount</label>
|
||||
<input type="text" class="form-control" id="premium_amount" name="premium_amount" placeholder="Enter Premium Amount">
|
||||
<input type="text" class="form-control" id="premium_amount" name="premium_amount" placeholder="Enter Premium Amount" value="<?= isset($lead_data['premium_amount']) ? $lead_data['premium_amount'] : "" ?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
<label for="total_amount">Total Amount</label>
|
||||
<input type="text" class="form-control" id="total_amount" name="total_amount" placeholder="Enter Total Amount">
|
||||
<input type="text" class="form-control" id="total_amount" name="total_amount" placeholder="Enter Total Amount" value="<?= isset($lead_data['total_amount']) ? $lead_data['total_amount'] : "" ?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
<label for="cd_amount">CD Amount</label>
|
||||
<input type="text" class="form-control" id="cd_amount" name="cd_amount" placeholder="Enter CD Amount">
|
||||
<input type="text" class="form-control" id="cd_amount" name="cd_amount" placeholder="Enter CD Amount" value="<?= isset($lead_data['cd_amount']) ? $lead_data['cd_amount'] : "" ?>">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@ -472,7 +472,7 @@
|
||||
<select class="form-control" id="placement_cc" name="placement_cc" required multiple>
|
||||
<?php if (isset($userList)) { ?>
|
||||
<?php foreach ($userList as $user) { ?>
|
||||
<option value="<?= $user['id']; ?>">
|
||||
<option value="<?= $user['email']; ?>">
|
||||
<?= $user['first_name'] . ' - ' . $user['email']; ?>
|
||||
</option>
|
||||
<?php } ?>
|
||||
@ -2512,6 +2512,9 @@
|
||||
data: formData,
|
||||
method: "POST",
|
||||
success: function(response) {
|
||||
|
||||
console.log('RFQ NON EB FORM SUBMIT RESPONSE : ', response);
|
||||
|
||||
if (response.status == true) {
|
||||
localStorage.removeItem('policyData');
|
||||
|
||||
@ -4773,7 +4776,7 @@
|
||||
|
||||
// Process `to` field
|
||||
to = to.split(',').map(email => email.trim());
|
||||
cc = cc.map(Number); // or split if it's a string: `cc.split(',').map(email => email.trim())`
|
||||
// cc = cc.map(Number); // or split if it's a string: `cc.split(',').map(email => email.trim())`
|
||||
|
||||
|
||||
var selectedFiles = [];
|
||||
@ -4823,6 +4826,8 @@
|
||||
dataType: 'json',
|
||||
success: function(res) {
|
||||
|
||||
console.log('MAIL SEND API RESPONSE : ', res);
|
||||
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
@ -4843,9 +4848,8 @@
|
||||
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
// console.error(xhr.responseText);
|
||||
// console.error(status, error);
|
||||
console.error(xhr.responseText);
|
||||
console.error(status, error);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user