FIX_BDS_REPORT_CSV_ADD_BUSINESS_TYPE
This commit is contained in:
parent
4440312616
commit
a5ee2c8d2b
@ -81,7 +81,7 @@ table.dataTable tbody td {
|
|||||||
<th>S. No</th>
|
<th>S. No</th>
|
||||||
<th style="display: none;">User</th>
|
<th style="display: none;">User</th>
|
||||||
<th>Month</th>
|
<th>Month</th>
|
||||||
<!-- <th style="display: none;">Business Type</th> -->
|
<th style="display: none;">Business Type</th>
|
||||||
<th style="display: none;">Client Type</th>
|
<th style="display: none;">Client Type</th>
|
||||||
<th>Insured Name</th>
|
<th>Insured Name</th>
|
||||||
<th>Policy/<br>Endorsement</th>
|
<th>Policy/<br>Endorsement</th>
|
||||||
@ -125,7 +125,7 @@ table.dataTable tbody td {
|
|||||||
?>" class="mdi mdi-pencil" ></a> </td>
|
?>" class="mdi mdi-pencil" ></a> </td>
|
||||||
<td style="display: none;"><?php echo $row['user_name'] ?: 'N/A'; ?></td>
|
<td style="display: none;"><?php echo $row['user_name'] ?: 'N/A'; ?></td>
|
||||||
<td><?php echo $row['policy_issue_month'] ?: 'N/A'; ?></td>
|
<td><?php echo $row['policy_issue_month'] ?: 'N/A'; ?></td>
|
||||||
<!-- <td style="display: none;"><?php echo $row['revenue_type'] ?: 'N/A'; ?></td> -->
|
<td style="display: none;"><?php echo $row['revenue_type'] ?: 'N/A'; ?></td>
|
||||||
<td style="display: none;"><?php echo $row['client_type'] ?: 'N/A'; ?></td>
|
<td style="display: none;"><?php echo $row['client_type'] ?: 'N/A'; ?></td>
|
||||||
<td><?php echo $row['client_name'] ?: 'N/A'; ?></td>
|
<td><?php echo $row['client_name'] ?: 'N/A'; ?></td>
|
||||||
<td><?php echo $row['action_type'] ?: 'N/A'; ?></td>
|
<td><?php echo $row['action_type'] ?: 'N/A'; ?></td>
|
||||||
@ -279,9 +279,22 @@ $(document).ready(function() {
|
|||||||
text: '<i class="mdi mdi-file-delimited " ></i><span class=" btn-custom"> CSV </span>',
|
text: '<i class="mdi mdi-file-delimited " ></i><span class=" btn-custom"> CSV </span>',
|
||||||
title: 'Policy-Tranction-BDS-List',
|
title: 'Policy-Tranction-BDS-List',
|
||||||
exportOptions: {
|
exportOptions: {
|
||||||
columns: ':visible', // or specify exact columns [0,1,2,...]
|
columns: function (idx, data, node) {
|
||||||
|
return true; // ✅ include all columns (even hidden)
|
||||||
|
},
|
||||||
format: {
|
format: {
|
||||||
body: function (data, row, column, node) {
|
body: function (data, row, column, node) {
|
||||||
|
|
||||||
|
data = data.replace(/ /g, '').replace(/\s+/g, ' ').trim();
|
||||||
|
|
||||||
|
// If it's the first column (index 0), remove link and special chars
|
||||||
|
if (column === 0 || column === 20 || column === 11 ) {
|
||||||
|
// Remove all <a> tags and their contents
|
||||||
|
data = data.replace(/<a[^>]*>(.*?)<\/a>/gi, '');
|
||||||
|
// Also remove other HTML tags and
|
||||||
|
data = $('<div>').html(data).text().replace(/\u00a0/g, ' ').trim();
|
||||||
|
}
|
||||||
|
|
||||||
// Force K and L columns to string
|
// Force K and L columns to string
|
||||||
if (column === 10 || column === 11) {
|
if (column === 10 || column === 11) {
|
||||||
// Option 1: prepend single quote
|
// Option 1: prepend single quote
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user