This commit is contained in:
Pusdatin BPKD Jkt
2023-07-28 09:14:23 +07:00
parent 33240e3d2e
commit de597eb086
@@ -242,6 +242,14 @@
return a + b * 1; return a + b * 1;
}, 0); }, 0);
let sum4 = rows.data().pluck("retur").reduce( function (a, b) {
return a + b * 1;
}, 0);
let sum5 = rows.data().pluck("bersih").reduce( function (a, b) {
return a + b * 1;
}, 0);
let textmuted = index == 1 ? "text-muted":""; let textmuted = index == 1 ? "text-muted":"";
let labelGroup = index == 1 ?"JUMLAH | " + group : "TOTAL"; let labelGroup = index == 1 ?"JUMLAH | " + group : "TOTAL";
return $("<tr/>") return $("<tr/>")
@@ -250,6 +258,8 @@
.append("<td class='text-right'><strong>"+ separateNumberIndo(sum) +"</strong></td>" ) .append("<td class='text-right'><strong>"+ separateNumberIndo(sum) +"</strong></td>" )
.append("<td class='text-right'><strong>"+ separateNumberIndo(sum2) +"</strong></td>" ) .append("<td class='text-right'><strong>"+ separateNumberIndo(sum2) +"</strong></td>" )
.append("<td class='text-right'><strong>"+ separateNumberIndo(sum3) +"</strong></td>" ) .append("<td class='text-right'><strong>"+ separateNumberIndo(sum3) +"</strong></td>" )
.append("<td class='text-right'><strong>"+ separateNumberIndo(sum4) +"</strong></td>" )
.append("<td class='text-right'><strong>"+ separateNumberIndo(sum5) +"</strong></td>" )
.append("<td colspan='5'></td>") .append("<td colspan='5'></td>")
}, },
startRender: function ( rows, group, index ) { startRender: function ( rows, group, index ) {