This commit is contained in:
afiq
2021-02-27 12:34:41 +08:00
parent 51bca39f35
commit c1553704f8
14 changed files with 220 additions and 65 deletions
+6 -6
View File
@@ -276,7 +276,7 @@ async function openuptambahdanserah(e)
if(id == 'tambahmodal')
{
const { value: amaun } = await Swal.fire({
Swal.fire({
title: 'Masukkan Amaun Pendahuluan',
input: 'text',
inputPlaceholder: 'Amaun',
@@ -301,7 +301,7 @@ async function openuptambahdanserah(e)
if (isNaN(amaun))
{
Swal.fire('error','Amaun hendaklah dalam nombor!','error');
return false;
return false;
}
else
{
@@ -310,7 +310,7 @@ async function openuptambahdanserah(e)
url: api_url + '/api/requestTeller/' + kodcaw,
data: {
"kodlaluan" : teller,
"modal" : amaun,
"modal" : amaun.value,
"serahan" : 0
},
success:function(data)
@@ -387,9 +387,9 @@ async function openuptambahdanserah(e)
});
if (amaun) {
// Swal.fire(`Entered email: ${amaun}`)
if (isNaN(amaun))
if (amaun.isConfirmed) {
// Swal.fire(`Entered email: ${amaun}`)
if (isNaN(amaun.value))
{
Swal.fire('error','Amaun hendaklah dalam nombor!','error');
return false;