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
+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;
}
}
}
}