diff --git a/resources/views/penebusan/v2/index.blade.php b/resources/views/penebusan/v2/index.blade.php index e7bfe40..23ecafe 100644 --- a/resources/views/penebusan/v2/index.blade.php +++ b/resources/views/penebusan/v2/index.blade.php @@ -237,7 +237,7 @@
- REBET + REBAT
@@ -250,7 +250,7 @@ @endif
- JUMLAH PENDAPATAN + @if($gadai['tagbaru'] == 1) JUM UNTUNG DAN UJRAH @else JUMLAH KEUNTUNGAN @endif
@@ -290,7 +290,7 @@
- PERLU DIBAYAR (RM) + BAYARAN PELANGGAN (RM)
@@ -948,6 +948,7 @@ $("#divbayaranminima").hide(); $('.divlebihanmargin').hide(); $('#divjenisAT').hide(); + $('#divperludibayarAT').hide(); $('#bayaran').val(formatter.format(jumupah)); @@ -1448,7 +1449,7 @@ let jenisbayarantebus = ''; let jeniskeuntungan = (tagbaru == 1) ? 'onepercent' : 'asal'; - + let hadbayaransuran = (parseFloat("{{ $gadai['nilaimarhun']}}") * 0.1); var bayar = Number(parseFloat($('#bayaran').val().replace(/[^0-9.-]+/g,"")).toFixed(2)); @@ -3573,6 +3574,20 @@ function blockbayaranAT(event){ total = (jenisAT != 'hargalama') ? (upah + lebihanmargin) : upah; if(value == '' || value <= 0 || value < total){ + if(value == '' || value <= 0){ + Swal.fire( + 'Tidak Berjaya!', + 'Bayaran Tidak boleh ditinggalkan Kosong!', + 'error' + ); + }else if(value < total){ + Swal.fire( + 'Tidak Berjaya!', + 'Bayaran Tidak boleh kurang daripada RM' + formatter.format(total) + '!', + 'error' + ); + } + if(jenisAT != 'hargalama'){ $('#perludibayarAT').val(formatter.format(total)); $('#pinjamanbaru').val(formatter.format(pembiayaan));