FIX_REPORT PAGE PRINT AND CSV

This commit is contained in:
Srinivas-Saravanan 2024-12-31 17:33:55 +05:30
parent 9cbf6ac3fa
commit 8524a660ce
2 changed files with 4 additions and 4 deletions

View File

@ -83,7 +83,7 @@
customize: function (win) {
var total = calculateTotal();
$(win.document.body)
.append(`<div style="text-align: right; font-weight: bold; margin-top: 20px;">Total Amount: ${total}</div>`);
.append(`<div style="text-align: right; font-weight: bold; margin-top: 20px;">Total Amount: ${total}</div>`);
}
},
{
@ -96,7 +96,7 @@
var columnCount = csvRows[0].split(",").length;
var emptyCells = Array(columnCount - 2).fill("").join(","); // Adjust the number of empty cells
var totalRow = `${emptyCells},Total,${total}`;
var totalRow = `${emptyCells},Total,${total}`;
csvRows.push(totalRow);

View File

@ -165,7 +165,7 @@
customize: function (win) {
var total = calculateTotal();
$(win.document.body)
.append(`<div style="text-align: right; font-weight: bold; margin-top: 20px;">Total Amount: ${total}</div>`);
.append(`<div style="text-align: right; font-weight: bold; margin-top: 20px;">Total Amount: ${total}</div>`);
}
},
{
@ -179,7 +179,7 @@
var columnCount = csvRows[0].split(",").length;
var emptyCells = Array(columnCount - 2).fill("").join(",");
var totalRow = `${emptyCells},Total,${total}`;
var totalRow = `${emptyCells},Total,${total}`;
csvRows.push(totalRow);