FEAT_STATEMENT_UPLOAD_FILTER,FIX_EXCEL_EXPORT_LARGENUMBERS_BDS_SRINIVAS
This commit is contained in:
parent
7d115347a1
commit
209f66b484
@ -79,10 +79,10 @@
|
||||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick-theme.min.css" />
|
||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js"></script>
|
||||
//srinivas
|
||||
<!-- srinivas -->
|
||||
<script src="https://editor.unlayer.com/embed.js"></script>
|
||||
<!-- <script src="<?= base_url('public/unlayer/js/embed.js').''?>"></script> -->
|
||||
//srinivas
|
||||
<!-- srinivas -->
|
||||
<style>
|
||||
|
||||
|
||||
|
||||
@ -32,6 +32,13 @@ table.dataTable tbody td {
|
||||
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<div id="totals" style="margin-bottom: 10px;">
|
||||
<strong>Total Premium:</strong> <span id="total_premium">0.00</span> |
|
||||
<strong>Total Rewards:</strong> <span id="total_rewards">0.00</span> |
|
||||
<strong>Total IRDA Revenue INR:</strong> <span id="total_irda">0.00</span> |
|
||||
<strong>Total Billed Amount:</strong> <span id="total_billed">0.00</span> |
|
||||
<strong>Total Unbilled Amount:</strong> <span id="total_unbilled">0.00</span>
|
||||
</div>
|
||||
<table id="scroll-horizontal-datatable" class="table w-100 nowrap">
|
||||
<thead class="bg-light">
|
||||
<tr>
|
||||
@ -198,7 +205,21 @@ $(document).ready(function() {
|
||||
|
||||
// Append the new total row to the sheet
|
||||
$(sheet).find('sheetData').append(totalRow);
|
||||
}
|
||||
},
|
||||
exportOptions: {
|
||||
orthogonal: 'sort'
|
||||
},
|
||||
customizeData: function (data) {
|
||||
for (var i = 0; i < data.body.length; i++) {
|
||||
for (var j = 0; j < data.body[i].length; j++) {
|
||||
// Check if the column is the 9th index (10th column)
|
||||
if (j === 9) { // 8 is the 9th index (0-based)
|
||||
data.body[i][j] = '\u200C' + data.body[i][j];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
],
|
||||
@ -208,7 +229,38 @@ $(document).ready(function() {
|
||||
},
|
||||
paging: true, // Enable pagination
|
||||
pageLength: 25, // Set default number of rows per page (optional)
|
||||
ordering: false,
|
||||
ordering: false,
|
||||
"footerCallback": function(row, data, start, end, display) {
|
||||
var api = this.api();
|
||||
|
||||
// Calculate column totals
|
||||
var totalPremium = api.column(23).data().reduce(function(a, b) {
|
||||
return parseFloat(a) + parseFloat(b) || 0;
|
||||
}, 0);
|
||||
|
||||
var total_rewards = api.column(26).data().reduce(function(a,b){
|
||||
return parseFloat(a) + parseFloat(b) || 0;
|
||||
})
|
||||
|
||||
var totalIrda = api.column(27).data().reduce(function(a, b) {
|
||||
return parseFloat(a) + parseFloat(b) || 0;
|
||||
}, 0);
|
||||
|
||||
var totalBilled = api.column(28).data().reduce(function(a, b) {
|
||||
return parseFloat(a) + parseFloat(b) || 0;
|
||||
}, 0);
|
||||
|
||||
var totalUnbilled = api.column(29).data().reduce(function(a, b) {
|
||||
return parseFloat(a) + parseFloat(b) || 0;
|
||||
}, 0);
|
||||
|
||||
// Update the totals in the div above the table
|
||||
$('#total_premium').text(totalPremium.toFixed(2));
|
||||
$('#total_rewards').text(total_rewards.toFixed(2))
|
||||
$('#total_irda').text(totalIrda.toFixed(2));
|
||||
$('#total_billed').text(totalBilled.toFixed(2));
|
||||
$('#total_unbilled').text(totalUnbilled.toFixed(2));
|
||||
}
|
||||
});
|
||||
} else {
|
||||
console.error("Table atet found.");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user