FIX_REPORT PAGE PRINT AND CSV
This commit is contained in:
parent
9cbf6ac3fa
commit
8524a660ce
@ -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);
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user