Update jadwal salur
This commit is contained in:
@@ -50,21 +50,49 @@
|
||||
<table id="dtTableJadwalPendapatan" class="table table-striped jambo_table tblClickRow" style="width:150%">
|
||||
<thead>
|
||||
<tr class="headings">
|
||||
<th>No</th>
|
||||
<th>Rekening</th>
|
||||
<th>Jan</th>
|
||||
<th>Feb</th>
|
||||
<th>Mar</th>
|
||||
<th>Apr</th>
|
||||
<th>Mei</th>
|
||||
<th>Juni</th>
|
||||
<th>Juli</th>
|
||||
<th>Agu</th>
|
||||
<th>Sep</th>
|
||||
<th>Okt</th>
|
||||
<th>Nov</th>
|
||||
<th>Des</th>
|
||||
<th>Jumlah</th>
|
||||
<th rowspan=2>No</th>
|
||||
<th rowspan=2>Nama Rekening</th>
|
||||
<th colspan=2 class="text-right">Jan</th>
|
||||
<th colspan=2 class="text-right">Feb</th>
|
||||
<th colspan=2 class="text-right">Mar</th>
|
||||
<th colspan=2 class="text-right">Apr</th>
|
||||
<th colspan=2 class="text-right">Mei</th>
|
||||
<th colspan=2 class="text-right">Juni</th>
|
||||
<th colspan=2 class="text-right">Juli</th>
|
||||
<th colspan=2 class="text-right">Agu</th>
|
||||
<th colspan=2 class="text-right">Sep</th>
|
||||
<th colspan=2 class="text-right">Okt</th>
|
||||
<th colspan=2 class="text-right">Nov</th>
|
||||
<th colspan=2 class="text-right">Des</th>
|
||||
<th colspan=2 class="text-right">Jumlah</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Jadwal</td>
|
||||
<td>Realisasi</td>
|
||||
<td>Jadwal</td>
|
||||
<td>Realisasi</td>
|
||||
<td>Jadwal</td>
|
||||
<td>Realisasi</td>
|
||||
<td>Jadwal</td>
|
||||
<td>Realisasi</td>
|
||||
<td>Jadwal</td>
|
||||
<td>Realisasi</td>
|
||||
<td>Jadwal</td>
|
||||
<td>Realisasi</td>
|
||||
<td>Jadwal</td>
|
||||
<td>Realisasi</td>
|
||||
<td>Jadwal</td>
|
||||
<td>Realisasi</td>
|
||||
<td>Jadwal</td>
|
||||
<td>Realisasi</td>
|
||||
<td>Jadwal</td>
|
||||
<td>Realisasi</td>
|
||||
<td>Jadwal</td>
|
||||
<td>Realisasi</td>
|
||||
<td>Jadwal</td>
|
||||
<td>Realisasi</td>
|
||||
<td>Jadwal</td>
|
||||
<td>Realisasi</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
@@ -131,18 +159,31 @@
|
||||
{ "data": null},
|
||||
{ "data": "kode_rekening", "width": "400px" },
|
||||
{ "data": "spsbulan1", "className":"text-right" },
|
||||
{ "data": null, "className":"text-right" },
|
||||
{ "data": "spsbulan2", "className":"text-right" },
|
||||
{ "data": "spsbulan3", "className":"text-right" },
|
||||
{ "data": "spsbulan4", "className":"text-right" },
|
||||
{ "data": "spsbulan5", "className":"text-right" },
|
||||
{ "data": "spsbulan6", "className":"text-right" },
|
||||
{ "data": "spsbulan7", "className":"text-right" },
|
||||
{ "data": "spsbulan8", "className":"text-right" },
|
||||
{ "data": "spsbulan9", "className":"text-right" },
|
||||
{ "data": "spsbulan10", "className":"text-right" },
|
||||
{ "data": null, "className":"text-right" },
|
||||
{ "data": "spsbulan3", "className":"text-right" },
|
||||
{ "data": null, "className":"text-right" },
|
||||
{ "data": "spsbulan4", "className":"text-right" },
|
||||
{ "data": null, "className":"text-right" },
|
||||
{ "data": "spsbulan5", "className":"text-right" },
|
||||
{ "data": null, "className":"text-right" },
|
||||
{ "data": "spsbulan6", "className":"text-right" },
|
||||
{ "data": null, "className":"text-right" },
|
||||
{ "data": "spsbulan7", "className":"text-right" },
|
||||
{ "data": null, "className":"text-right" },
|
||||
{ "data": "spsbulan8", "className":"text-right" },
|
||||
{ "data": null, "className":"text-right" },
|
||||
{ "data": "spsbulan9", "className":"text-right" },
|
||||
{ "data": null, "className":"text-right" },
|
||||
{ "data": "spsbulan10", "className":"text-right" },
|
||||
{ "data": null, "className":"text-right" },
|
||||
{ "data": "spsbulan11", "className":"text-right" },
|
||||
{ "data": "spsbulan12", "className":"text-right" },
|
||||
{ "data": "kode_rekening", "className":"text-right" },
|
||||
{ "data": null, "className":"text-right" },
|
||||
{ "data": "spsbulan12", "className":"text-right" },
|
||||
{ "data": null, "className":"text-right" },
|
||||
{ "data": null, "className":"text-right" },
|
||||
{ "data": null, "className":"text-right" },
|
||||
//{ "data": null },
|
||||
],
|
||||
"rowCallback": function(nRow, aData, iDisplayIndex, iDisplayIndexFull, oSettings) {
|
||||
@@ -154,9 +195,12 @@
|
||||
|
||||
let total = 0;
|
||||
$("td:eq(0)", nRow).html(index);
|
||||
$("td:eq(1)", nRow).html(aData["kode_rekening"]+" | "+aData["nama_rekening"]);
|
||||
$("td:eq(1)", nRow).html(aData["kode_rekening"] + " | " + aData["nama_rekening"]);
|
||||
let Jadwalcol=0;
|
||||
$.each(sps, function(i,x){
|
||||
$("td:eq("+(i+2)+")", nRow).html(separateNumberIndo(sps[i]));
|
||||
Jadwalcol+=2;
|
||||
$("td:eq("+Jadwalcol+")", nRow).html(separateNumberIndo(sps[i]));
|
||||
$("td:eq("+(Jadwalcol+1)+")", nRow).html(0);
|
||||
total+=parseFloat(sps[i]);
|
||||
})
|
||||
$("td:eq(14)", nRow).html(separateNumberIndo(total));
|
||||
@@ -195,18 +239,31 @@
|
||||
return $("<tr/>")
|
||||
.append( "<td colspan=2 class=\'text-left " + textmuted +"\'><strong>"+labelGroup+"</strong></td>")
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[0]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>0</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[1]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>0</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[2]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>0</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[3]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>0</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[4]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>0</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[5]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>0</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[6]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>0</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[7]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>0</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[8]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>0</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[9]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>0</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[10]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>0</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[11]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(total) +"</strong></td>" );
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>0</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(total) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>0</strong></td>" );
|
||||
},
|
||||
startRender: function ( rows, group, index ) {
|
||||
// let group1 = rows.data().pluck("GROUP1");
|
||||
|
||||
Reference in New Issue
Block a user