Maintenance
This commit is contained in:
@@ -76,6 +76,8 @@
|
||||
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
|
||||
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-fixedcolumns/js/dataTables.fixedColumns.min.js"></script>
|
||||
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-fixedcolumns/js/fixedColumns.bootstrap4.min.js"></script>
|
||||
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-rowgroup/js/dataTables.rowGroup.min.js"></script>
|
||||
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-rowgroup/js/rowGroup.bootstrap4.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
var srcDate1 = null, srcDate2 = null;
|
||||
@@ -218,6 +220,34 @@
|
||||
],
|
||||
}
|
||||
],
|
||||
rowGroup: {
|
||||
endRender: function ( rows, group, index ) {
|
||||
let sum = rows.data().pluck("simtrad4_kotor").reduce( function (a, b) {
|
||||
return a + b * 1;
|
||||
}, 0);
|
||||
|
||||
let sum2 = rows.data().pluck("simtrad4_potongan").reduce( function (a, b) {
|
||||
return a + b * 1;
|
||||
}, 0);
|
||||
|
||||
let sum3 = rows.data().pluck("simtrad4_bersih").reduce( function (a, b) {
|
||||
return a + b * 1;
|
||||
}, 0);
|
||||
|
||||
let textmuted = index == 1 ? "text-muted":"";
|
||||
let labelGroup = index == 1 ?"JUMLAH | " + group : "TOTAL";
|
||||
return $("<tr/>")
|
||||
.append("<td></td>")
|
||||
.append("<td class=\'text-left " + textmuted +"\'><strong>"+labelGroup+"</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(sum3) +"</strong></td>" )
|
||||
.append("<td colspan='5'></td>")
|
||||
},
|
||||
startRender: function ( rows, group, index ) {
|
||||
},
|
||||
dataSrc: ["tahun_anggaran"],
|
||||
},
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user