This commit is contained in:
afiq
2021-02-15 09:08:19 +08:00
parent 9cd75ac010
commit 6a2b78c72c
16 changed files with 118 additions and 115 deletions
+19 -9
View File
@@ -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>
+12 -10
View File
@@ -679,7 +679,7 @@
return false;
}
else{
if(pinjaman > Number(pembiyaan_max_pelulus)+10 || pinjaman > 10000){
if(pinjaman > Number(pembiyaan_max_pelulus)+10 || pinjaman >= 10000){
const swalWithBootstrapButtons = Swal.mixin({
customClass: {
confirmButton: 'btn btn-success',
@@ -691,7 +691,7 @@
if(pinjaman > Number(pembiyaan_max_pelulus)+10){
var errortext = "Tetapan margin melebihi 75% untuk Operasi!";
}
if(pinjaman > 10000){
if(pinjaman >= 10000){
var errortext = "Pinjaman Melebihi 10000";
}
@@ -888,14 +888,16 @@
event.preventDefault();
return false;
}
Swal.fire({
icon: 'success',
title: 'Berjaya!',
text: 'Gadaian Berjaya Disimpan'
});
$(func).attr("onSubmit","return true;");
$(func).submit();
return true;
else if( pinjaman < 10000){
Swal.fire({
icon: 'success',
title: 'Berjaya!',
text: 'Gadaian Berjaya Disimpan'
});
$(func).attr("onSubmit","return true;");
$(func).submit();
return true;
}
}
}
}