diff --git a/resources/views/customers/info.blade.php b/resources/views/customers/info.blade.php index 24eaaa4..7543186 100644 --- a/resources/views/customers/info.blade.php +++ b/resources/views/customers/info.blade.php @@ -754,7 +754,7 @@ 'RM '+formatter.format(gadai_detail['bakipjm']), (((Number(gadai_detail['pinjaman'])/Number(gadai_detail['nilaimarhun']))*100).toFixed(2)).toLocaleString("en-GB") + '%', gadai_detail['tempoh'], - 'RM '+ formatter.format(upahsemasa) + 'RM '+ upahsemasa ]).draw(); } }else if(jenistebus == "sudah_tebus"){ diff --git a/resources/views/khazanah/info.blade.php b/resources/views/khazanah/info.blade.php index 7160a24..30d37d9 100644 --- a/resources/views/khazanah/info.blade.php +++ b/resources/views/khazanah/info.blade.php @@ -523,7 +523,7 @@ 'RM '+formatter.format(gadai_detail['bakipjm']), (((Number(gadai_detail['pinjaman'])/Number(gadai_detail['nilaimarhun']))*100).toFixed(2)).toLocaleString("en-GB") + '%', gadai_detail['tempoh'], - 'RM '+ formatter.format(upahsemasa) + 'RM '+ upahsemasa ]).draw(); } }else if(jenistebus == "sudah_tebus"){ diff --git a/resources/views/penebusan/index-khazanah.blade.php b/resources/views/penebusan/index-khazanah.blade.php index 6145168..cabb651 100644 --- a/resources/views/penebusan/index-khazanah.blade.php +++ b/resources/views/penebusan/index-khazanah.blade.php @@ -417,7 +417,7 @@ url: api + '/api/upahtawarruq/' + kodcaw + '/' + norujukan, dataType: 'json', success:function(data){ - $('#jumlahupah').val(formatter.format(data)); + $('#jumlahupah').val(data); $('#bayaranditerima').val(data); } }); diff --git a/resources/views/penebusan/index.blade.php b/resources/views/penebusan/index.blade.php index 1e4cbc2..348efac 100644 --- a/resources/views/penebusan/index.blade.php +++ b/resources/views/penebusan/index.blade.php @@ -1194,7 +1194,7 @@ let jenisbayarantebus = ''; let hadbayaransuran = (parseFloat("{{ $gadai['nilaimarhun']}}") * 0.1); - var bayar = $('#bayaran').val(); + var bayar = Number(parseFloat($('#bayaran').val().replace(/[^0-9.-]+/g,"")).toFixed(2)); var bakipinjam = parseFloat("{{ $gadai['bakipjm'] }}") - hadbayaransuran; if(bayar < jumupah){