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)
|
||||
@@ -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;
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user