CHANGE_EMAIL_TEMPLATE : RV
This commit is contained in:
parent
a14e16e729
commit
376d3828fc
@ -205,8 +205,8 @@ class sendMailNotification
|
||||
|
||||
//Only Display SI Topup and Dependent Addon
|
||||
if ($inner_item['is_addon'] == 2 || $inner_item['is_addon'] == 3) {
|
||||
$temp_data .= '<td>₹' . format_indian_number($inner_item['premium']) . '</td>';
|
||||
$temp_data .= '<td>₹' . format_indian_number($inner_item['gst']) . '</td>';
|
||||
$temp_data .= '<td>₹' . format_indian_number(round($inner_item['premium'])) . '</td>';
|
||||
$temp_data .= '<td>₹' . format_indian_number(round($inner_item['gst'])) . '</td>';
|
||||
}
|
||||
|
||||
$temp_data .= '</tr>';
|
||||
@ -250,8 +250,8 @@ class sendMailNotification
|
||||
if ($is_addon == 2 || $is_addon == 3) {
|
||||
$addon_list_array = [
|
||||
'policy_name' => $policy_name,
|
||||
'addtional_premium' => $addtional_premium,
|
||||
'gst' => $gst
|
||||
'addtional_premium' => round($addtional_premium),
|
||||
'gst' => round($gst)
|
||||
];
|
||||
$Addon_list[] = $addon_list_array;
|
||||
}
|
||||
@ -267,7 +267,7 @@ class sendMailNotification
|
||||
$table_content .= '<br><div style="text-align: left; font-size: 12px; ">';
|
||||
$table_content .= '<div style="text-align:left;">';
|
||||
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
|
||||
$table_content .= '<thead style="background-color: #e26828; color: #ffffff;">';
|
||||
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff;">';
|
||||
$table_content .= '<tr style="font-size: 12px;" ><th>Policy Name</th><th>Additional Premium</th><th>GST</th><th>Total</th></tr>';
|
||||
$table_content .= '</thead><tbody>';
|
||||
$sum_tolal = 0;
|
||||
@ -275,15 +275,15 @@ class sendMailNotification
|
||||
foreach ($Addon_list as $key => $value) {
|
||||
$sum_tolal = $value['gst'] + $value['addtional_premium'] + $sum_tolal;
|
||||
$table_content .= '<tr style="font-size: 12px; "><td>' . $value['policy_name'] . '</td>';
|
||||
$table_content .= '<td>₹' . $value['addtional_premium'] . '</td>';
|
||||
$table_content .= '<td>₹' . $value['gst'] . '</td>';
|
||||
$table_content .= '<td>₹' . ($value['gst'] + $value['addtional_premium']) . '</td></tr>';
|
||||
$table_content .= '<td>₹' . format_indian_number($value['addtional_premium']) . '</td>';
|
||||
$table_content .= '<td>₹' . format_indian_number($value['gst']) . '</td>';
|
||||
$table_content .= '<td>₹' . format_indian_number(($value['gst'] + $value['addtional_premium'])) . '</td></tr>';
|
||||
}
|
||||
|
||||
$sum_total_words = numberToWords($sum_tolal);
|
||||
$table_content .= '<tr style="font-size: 12px;"><td></td><td></td><td><b>Total</b></td><td>₹' . format_indian_number($sum_tolal) . '</td></tr>';
|
||||
$table_content .= '</tbody></table></div></div>';
|
||||
$table_content .= '<div style="width:100%; text-align:right; font-size: 12px; ">' . $sum_total_words . '</div>';
|
||||
// $table_content .= '<div style="width:100%; text-align:right; font-size: 12px; ">' . $sum_total_words . '</div>';
|
||||
}
|
||||
|
||||
|
||||
@ -373,8 +373,8 @@ class sendMailNotification
|
||||
|
||||
//Only Display SI Topup and Dependent Addon
|
||||
if ($inner_item['is_addon'] == 2 || $inner_item['is_addon'] == 3) {
|
||||
$temp_data .= '<td>₹' . format_indian_number($inner_item['premium']) . '</td>';
|
||||
$temp_data .= '<td>₹' . format_indian_number($inner_item['gst']) . '</td>';
|
||||
$temp_data .= '<td>₹' . format_indian_number(round($inner_item['premium'])) . '</td>';
|
||||
$temp_data .= '<td>₹' . format_indian_number(round($inner_item['gst'])) . '</td>';
|
||||
}
|
||||
|
||||
$temp_data .= '</tr>';
|
||||
@ -410,8 +410,8 @@ class sendMailNotification
|
||||
if ($is_addon == 2 || $is_addon == 3) {
|
||||
$addon_list_array = [
|
||||
'policy_name' => $policy_name,
|
||||
'addtional_premium' => $addtional_premium,
|
||||
'gst' => $gst
|
||||
'addtional_premium' => round($addtional_premium),
|
||||
'gst' => round($gst)
|
||||
];
|
||||
$Addon_list[] = $addon_list_array;
|
||||
}
|
||||
@ -425,7 +425,7 @@ class sendMailNotification
|
||||
if (count($Addon_list) > 0) {
|
||||
$table_content .= '<br><div style="text-align: left; font-size: 12px;"><div style="text-align:left;">';
|
||||
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
|
||||
$table_content .= '<thead style="background-color: #e26828; color: #ffffff;">';
|
||||
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff;">';
|
||||
$table_content .= '<tr>';
|
||||
$table_content .= '<th>Policy Name</th>';
|
||||
$table_content .= '<th>Additional Premium</th>';
|
||||
@ -455,7 +455,7 @@ class sendMailNotification
|
||||
$table_content .= '</tr>';
|
||||
$table_content .= '</tbody>';
|
||||
$table_content .= '</table></div></div>';
|
||||
$table_content .= '<div style="width:100%; text-align:right; font-size: 12px;">' . $sum_total_words . '</div>';
|
||||
// $table_content .= '<div style="width:100%; text-align:right; font-size: 12px;">' . $sum_total_words . '</div>';
|
||||
}
|
||||
|
||||
$mail_content = str_replace("[[member_summary]]", $table_content , $mail_content);
|
||||
@ -543,8 +543,8 @@ class sendMailNotification
|
||||
|
||||
//Only Display SI Topup and Dependent Addon
|
||||
if ($inner_item['is_addon'] == 2 || $inner_item['is_addon'] == 3) {
|
||||
$temp_data .= '<td>₹' . format_indian_number($inner_item['premium']) . '</td>';
|
||||
$temp_data .= '<td>₹' . format_indian_number($inner_item['gst']) . '</td>';
|
||||
$temp_data .= '<td>₹' . format_indian_number(round($inner_item['premium'])) . '</td>';
|
||||
$temp_data .= '<td>₹' . format_indian_number(round($inner_item['gst'])) . '</td>';
|
||||
}
|
||||
|
||||
$temp_data .= '</tr>';
|
||||
@ -580,8 +580,8 @@ class sendMailNotification
|
||||
if ($is_addon == 2 || $is_addon == 3) {
|
||||
$addon_list_array = [
|
||||
'policy_name' => $policy_name,
|
||||
'addtional_premium' => $addtional_premium,
|
||||
'gst' => $gst
|
||||
'addtional_premium' => round($addtional_premium),
|
||||
'gst' => round($gst)
|
||||
];
|
||||
$Addon_list[] = $addon_list_array;
|
||||
}
|
||||
@ -595,7 +595,7 @@ class sendMailNotification
|
||||
if (count($Addon_list) > 0) {
|
||||
$table_content .= '<br><div style="text-align: left; font-size: 12px;"><div style="text-align:left;">';
|
||||
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
|
||||
$table_content .= '<thead style="background-color: #e26828; color: #ffffff;">';
|
||||
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff;">';
|
||||
$table_content .= '<tr>';
|
||||
$table_content .= '<th>Policy Name</th>';
|
||||
$table_content .= '<th>Additional Premium</th>';
|
||||
@ -625,7 +625,7 @@ class sendMailNotification
|
||||
$table_content .= '</tr>';
|
||||
$table_content .= '</tbody>';
|
||||
$table_content .= '</table></div></div>';
|
||||
$table_content .= '<div style="width:100%; text-align:right; font-size: 12px;">' . $sum_total_words . '</div>';
|
||||
// $table_content .= '<div style="width:100%; text-align:right; font-size: 12px;">' . $sum_total_words . '</div>';
|
||||
}
|
||||
|
||||
$mail_content = str_replace("[[member_summary]]", $table_content , $mail_content);
|
||||
|
||||
@ -242,12 +242,6 @@
|
||||
dateFormat: "d-m-Y",
|
||||
defaultDate: today,
|
||||
allowInput: false,
|
||||
onChange: function(selectedDates, dateStr, instance) {
|
||||
var closeDate = new Date(selectedDates[0]);
|
||||
closeDate.setFullYear(closeDate.getFullYear() + 1);
|
||||
closeDate.setDate(closeDate.getDate() - 1); // Set end date to last day of selected year
|
||||
closeDatePicker.setDate(closeDate);
|
||||
}
|
||||
});
|
||||
|
||||
// Calculate the end date (today + 1 year)
|
||||
@ -264,13 +258,13 @@
|
||||
// Initialize Flatpickr for the end date with the calculated end date
|
||||
var closeDatePicker = flatpickr("#close_date", {
|
||||
dateFormat: "d-m-Y",
|
||||
defaultDate: closeDate,
|
||||
defaultDate: today,
|
||||
allowInput: false
|
||||
});
|
||||
|
||||
var reminderDatePicker = flatpickr("#reminder_date", {
|
||||
dateFormat: "d-m-Y",
|
||||
defaultDate: closeDate,
|
||||
defaultDate: today,
|
||||
allowInput: false
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user