added config for redeemoptions and changes from 'tebus separuh to tebus sebahagian'
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -92,10 +92,16 @@
|
||||
<option value="T">T = Tebus</option>
|
||||
<option value="A" {{ $gadai['tempoh'] >= 12 ? 'disabled' : '' }}>A = Ansuran</option>
|
||||
@if($gadai['tagbaru'] == 1)
|
||||
<option value="S">S = Sebahagian</option>
|
||||
<option value="P">P = Tambah Pembiayaan</option>
|
||||
@if(config('redeemoption.enable_separuh') == 1)
|
||||
<option value="S">S = Sebahagian</option>
|
||||
@endif
|
||||
@if(config('redeemoption.enable_tambahpinjam') == 1)
|
||||
<option value="P">P = Tambah Pembiayaan</option>
|
||||
@endif
|
||||
@endif
|
||||
@if(config('redeemoption.enable_pembiayaansemula') == 1)
|
||||
<option value="AT">PS = Pembiayaan Semula</option>
|
||||
@endif
|
||||
<option value="AT">PS = Pembiayaan Semula</option>
|
||||
<option value="" disabled hidden>Pilih Jenis Tebus</option>
|
||||
</select>
|
||||
</div>
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user