diff --git a/config/redeemoption.php b/config/redeemoption.php new file mode 100644 index 0000000..5987f20 --- /dev/null +++ b/config/redeemoption.php @@ -0,0 +1,7 @@ + env('ENABLE_TAMBAHPINJAM',1), + 'enable_separuh' => env('ENABLE_SEPARUH',1), + 'enable_pembiayaansemula' => env('ENABLE_AUTOTAWARRUQ',1) + ]; +?> \ No newline at end of file diff --git a/resources/views/callcenter/v2/index.blade.php b/resources/views/callcenter/v2/index.blade.php index d59dde0..a08569f 100644 --- a/resources/views/callcenter/v2/index.blade.php +++ b/resources/views/callcenter/v2/index.blade.php @@ -3384,7 +3384,7 @@ urlroute = urlroute.replace(':id', norujukan); Swal.fire( 'Berjaya!', - 'Tebus Separuh Berjaya', + 'Tebus Sebahagian Berjaya', 'success' ) .then(function() { window.open(urlroute, '_blank'); diff --git a/resources/views/customers/v2/info.blade.php b/resources/views/customers/v2/info.blade.php index 822dd4b..06431bb 100644 --- a/resources/views/customers/v2/info.blade.php +++ b/resources/views/customers/v2/info.blade.php @@ -246,7 +246,7 @@ - {{-- --}} + diff --git a/resources/views/khazanah/index.blade.php b/resources/views/khazanah/index.blade.php index d23a3df..f600af9 100644 --- a/resources/views/khazanah/index.blade.php +++ b/resources/views/khazanah/index.blade.php @@ -830,33 +830,33 @@ return false; } }else if(id_type=='passport'){ - if(nokp.length < 5){ - Swal.fire({ - icon: 'error', - title: 'Amaran!', - text: 'Sila Periksa Passport Pelanggan' - }); - event.preventDefault(); - return false; - } - if(nokp.indexOf(' ') > 0){ - Swal.fire({ - icon: 'error', - title: 'Amaran!', - text: 'Sila Masukkan Passport Tanpa Ruang \'Kosong\' \n e.g(AP1111111)' - }); - event.preventDefault(); - return false; - } - if(regex.test(nokp) == false){ - Swal.fire({ - icon: 'error', - title: 'Amaran!', - text: 'Sila Periksa Passport Pelanggan' - }); - event.preventDefault(); - return false; - } + // if(nokp.length < 5){ + // Swal.fire({ + // icon: 'error', + // title: 'Amaran!', + // text: 'Sila Periksa Passport Pelanggan' + // }); + // event.preventDefault(); + // return false; + // } + // if(nokp.indexOf(' ') > 0){ + // Swal.fire({ + // icon: 'error', + // title: 'Amaran!', + // text: 'Sila Masukkan Passport Tanpa Ruang \'Kosong\' \n e.g(AP1111111)' + // }); + // event.preventDefault(); + // return false; + // } + // if(regex.test(nokp) == false){ + // Swal.fire({ + // icon: 'error', + // title: 'Amaran!', + // text: 'Sila Periksa Passport Pelanggan' + // }); + // event.preventDefault(); + // return false; + // } } } diff --git a/resources/views/penebusan/v1/index.blade.php b/resources/views/penebusan/v1/index.blade.php index a400624..626738e 100644 --- a/resources/views/penebusan/v1/index.blade.php +++ b/resources/views/penebusan/v1/index.blade.php @@ -2539,7 +2539,7 @@ urlroute = urlroute.replace(':id', norujukan); Swal.fire( 'Berjaya!', - 'Tebus Separuh Berjaya', + 'Tebus Sebahagian Berjaya', 'success' ) .then(function() { window.open(urlroute, '_blank'); diff --git a/resources/views/penebusan/v2/index-khazanah.blade.php b/resources/views/penebusan/v2/index-khazanah.blade.php index 53288b2..b4456d2 100644 --- a/resources/views/penebusan/v2/index-khazanah.blade.php +++ b/resources/views/penebusan/v2/index-khazanah.blade.php @@ -2800,7 +2800,7 @@ urlroute = urlroute.replace(':id', norujukan); Swal.fire( 'Berjaya!', - 'Tebus Separuh Berjaya', + 'Tebus Sebahagian Berjaya', 'success' ) .then(function() { window.open(urlroute, '_blank'); diff --git a/resources/views/penebusan/v2/index.blade-backup.php b/resources/views/penebusan/v2/index.blade-backup.php index 74c833c..e3dc68c 100644 --- a/resources/views/penebusan/v2/index.blade-backup.php +++ b/resources/views/penebusan/v2/index.blade-backup.php @@ -3011,7 +3011,7 @@ urlroute = urlroute.replace(':id', norujukan); Swal.fire( 'Berjaya!', - 'Tebus Separuh Berjaya', + 'Tebus Sebahagian Berjaya', 'success' ) .then(function() { window.open(urlroute, '_blank'); diff --git a/resources/views/penebusan/v2/index.blade.php b/resources/views/penebusan/v2/index.blade.php index bd2f321..7b30188 100644 --- a/resources/views/penebusan/v2/index.blade.php +++ b/resources/views/penebusan/v2/index.blade.php @@ -92,10 +92,16 @@ @if($gadai['tagbaru'] == 1) - - + @if(config('redeemoption.enable_separuh') == 1) + + @endif + @if(config('redeemoption.enable_tambahpinjam') == 1) + + @endif + @endif + @if(config('redeemoption.enable_pembiayaansemula') == 1) + @endif - @@ -1740,14 +1746,14 @@ function bayaransemua() { $("#terima_transaksi").prop('disabled', true); - Swal.fire({ - title: 'Memuatkan...', - allowEscapeKey : false, - allowOutsideClick: false, - didOpen: function () { - Swal.showLoading(); - } - }); + // Swal.fire({ + // title: 'Memuatkan...', + // allowEscapeKey : false, + // allowOutsideClick: false, + // didOpen: function () { + // Swal.showLoading(); + // } + // }); var jumupah = parseFloat($('#jumlahupah').val().replace(/[^0-9.-]+/g,"")); @@ -2432,6 +2438,7 @@ var check_komuditi = Object.keys(komoditi).length; if(check_komuditi == 0){ $("#terima_transaksi").prop('disabled', false); + Swal.close(); Swal.fire({ icon: 'error', title: 'Unit Komuditi Berbaki Minumum', @@ -2443,6 +2450,7 @@ }else{ if(Number(komoditi['unit_komuditi']) < pinjaman_baru){ $("#terima_transaksi").prop('disabled', false); + Swal.close(); Swal.fire({ icon: 'error', title: 'Baki Unit Komuditi Tidak Mencukupi', @@ -2485,7 +2493,8 @@ event.preventDefault(); } - if( $('#tambahpinjam').val() <= 0 && $('#tambahpinjam').val() === ''){ + + if( $('#tambahpinjam').val() <= 0 || $('#tambahpinjam').val() === ''){ $("#terima_transaksi").prop('disabled', false); Swal.fire( 'Amaran!', @@ -2495,13 +2504,14 @@ return false; } + if(parseFloat($('#basic-addon2').text()) > 75 && parseFloat($('#basic-addon2').text()) <= 80){ const swalWithBootstrapButtons = Swal.mixin({ customClass: { confirmButton: 'btn btn-success', cancelButton: 'btn btn-danger' }, - buttonsStyling: false + buttonsStyling: false, }); swalWithBootstrapButtons.fire({ @@ -3455,7 +3465,7 @@ urlroute = urlroute.replace(':id', norujukan); Swal.fire( 'Berjaya!', - 'Tebus Separuh Berjaya', + 'Tebus Sebahagian Berjaya', 'success' ) .then(function() { window.open(urlroute, '_blank'); diff --git a/resources/views/print/laporan_ansuran.blade.php b/resources/views/print/laporan_ansuran.blade.php index a0f6f69..2dab859 100644 --- a/resources/views/print/laporan_ansuran.blade.php +++ b/resources/views/print/laporan_ansuran.blade.php @@ -225,8 +225,8 @@ $totalduitmasuk += $item['duit_masuk']; $totalkeuntungan += $item['bayaran_keuntungan']; $totalpendahuluan += $item['bayaran_pembiayaan']; - $totalujrah += bcdiv(round($item['ansuranujrah'],2),1,1); - $totalonepercent += bcdiv(round($item['ansuranonepercent'],2),1,1); + $totalujrah += round($item['ansuranujrah'],2); + $totalonepercent += round($item['ansuranonepercent'],2); @endphp @if($index > 0) @@ -267,8 +267,8 @@