fix dashboard and penebusan laporan

This commit is contained in:
fifi97
2021-04-20 21:44:20 +08:00
parent 7aea582810
commit 835154e563
4 changed files with 96 additions and 27 deletions
@@ -99,6 +99,10 @@
}
});
});
const formatter = new Intl.NumberFormat('en-US', {
minimumFractionDigits: 2
});
function gadaitable(data){
var counter = 1;
@@ -120,7 +124,7 @@
gadai['berat']
]).draw();
$('#bilangan_surat').text(counter);
$('#jumlah_pinjaman').text('RM '+total_pinjaman);
$('#jumlah_pinjaman').text('RM '+ formatter.format(total_pinjaman.toFixed(2)));
counter = counter + 1;
}
});