update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user