update
This commit is contained in:
@@ -746,12 +746,19 @@
|
||||
buttonsStyling: false
|
||||
})
|
||||
|
||||
if(pinjaman > Number(pembiyaan_max_pelulus)+10){
|
||||
var errortext = "Tetapan margin melebihi 75% untuk Operasi!";
|
||||
}
|
||||
if(pinjaman >= 10000){
|
||||
var errortext = "Pinjaman Melebihi 10000";
|
||||
}
|
||||
|
||||
swalWithBootstrapButtons.fire({
|
||||
title: 'Dapatkan Pengesahan Operasi',
|
||||
text: "Tetapan margin melebihi 75% untuk Operasi!",
|
||||
text: errortext,
|
||||
icon: 'info',
|
||||
showCancelButton: true,
|
||||
confirmButtonText: 'Setuju!',
|
||||
confirmButtonText: 'Hantar',
|
||||
cancelButtonText: 'Batal',
|
||||
reverseButtons: true
|
||||
}).then((result) => {
|
||||
@@ -854,7 +861,7 @@
|
||||
text: "Tetapan margin melebihi 70% untuk Khazanah!",
|
||||
icon: 'info',
|
||||
showCancelButton: true,
|
||||
confirmButtonText: 'Setuju!',
|
||||
confirmButtonText: 'Hantar',
|
||||
cancelButtonText: 'Batal',
|
||||
reverseButtons: true
|
||||
}).then((result) => {
|
||||
@@ -944,13 +951,16 @@
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
else if(pinjaman < 10000){
|
||||
Swal.fire({
|
||||
icon: 'success',
|
||||
title: 'Berjaya!',
|
||||
text: 'Gadaian Berjaya Disimpan'
|
||||
});
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Swal.fire({
|
||||
icon: 'success',
|
||||
title: 'Berjaya!',
|
||||
text: 'Gadaian Berjaya Disimpan'
|
||||
});
|
||||
return true;
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user