tebus
This commit is contained in:
@@ -148,6 +148,9 @@ var tableaddtunai = $('#tableaddtunai').DataTable({
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
const formatter = new Intl.NumberFormat('en-US', {
|
||||||
|
minimumFractionDigits: 2
|
||||||
});
|
});
|
||||||
|
|
||||||
function gettable(datala)
|
function gettable(datala)
|
||||||
@@ -164,8 +167,8 @@ var tableaddtunai = $('#tableaddtunai').DataTable({
|
|||||||
tableaddtunai.row.add([
|
tableaddtunai.row.add([
|
||||||
counter,
|
counter,
|
||||||
arr['tarikh'],
|
arr['tarikh'],
|
||||||
'RM ' + arr['tambah'],
|
'RM ' + formatter.format(arr['tambah']),
|
||||||
'RM ' + arr['kurang'],
|
'RM ' + formatter.format(arr['kurang']),
|
||||||
arr['nota']
|
arr['nota']
|
||||||
]).draw();
|
]).draw();
|
||||||
counter = counter + 1;
|
counter = counter + 1;
|
||||||
|
|||||||
@@ -369,8 +369,8 @@
|
|||||||
method:'GET',
|
method:'GET',
|
||||||
url: api + '/api/tebustawarruq/' + kodcaw + '/' + norujukan,
|
url: api + '/api/tebustawarruq/' + kodcaw + '/' + norujukan,
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success:function(data){
|
success:function(harga_tebus){
|
||||||
$('#perludibayar').val(data.toFixed(2));
|
$('#perludibayar').val(harga_tebus.toFixed(2));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user