This commit is contained in:
afiq
2021-02-15 10:06:15 +08:00
parent 6a2b78c72c
commit 1f01ec3d4f
2 changed files with 7 additions and 4 deletions
+5 -2
View File
@@ -148,6 +148,9 @@ var tableaddtunai = $('#tableaddtunai').DataTable({
});
const formatter = new Intl.NumberFormat('en-US', {
minimumFractionDigits: 2
});
function gettable(datala)
@@ -164,8 +167,8 @@ var tableaddtunai = $('#tableaddtunai').DataTable({
tableaddtunai.row.add([
counter,
arr['tarikh'],
'RM ' + arr['tambah'],
'RM ' + arr['kurang'],
'RM ' + formatter.format(arr['tambah']),
'RM ' + formatter.format(arr['kurang']),
arr['nota']
]).draw();
counter = counter + 1;
+2 -2
View File
@@ -369,8 +369,8 @@
method:'GET',
url: api + '/api/tebustawarruq/' + kodcaw + '/' + norujukan,
dataType: 'json',
success:function(data){
$('#perludibayar').val(data.toFixed(2));
success:function(harga_tebus){
$('#perludibayar').val(harga_tebus.toFixed(2));
}
});