Merge branch 'hotfix/tunai-add-timestamp' of bitbucket.org:arrahn-pkb/kaunter into hotfix/tunai-add-timestamp

This commit is contained in:
Hafifie PKB
2024-12-31 10:17:30 +08:00
6 changed files with 247 additions and 42 deletions
+31 -12
View File
@@ -812,20 +812,39 @@
var nokp = $('#noic').val();
if(id_type=='nokp'){
if($.isNumeric(nokp) == false){
Swal.fire({
icon: 'error',
title: 'Amaran!',
text: 'Sila Masukkan Nombor Sahaja Pada No KP Pelanggan'
});
event.preventDefault();
return false;
// Swal.fire({
// icon: 'error',
// title: 'Amaran!',
// text: 'Sila Masukkan Nombor Sahaja Pada No KP Pelanggan'
// });
// event.preventDefault();
// return false;
if(nokp.substr(-1) != '*'){
Swal.fire({
icon: 'error',
title: 'Amaran!',
text: 'Sila Masukkan Nombor Sahaja Pada No KP Pelanggan'
});
event.preventDefault();
return false;
}
}
if(nokp.length != 12){
Swal.fire({
icon: 'error',
title: 'Amaran!',
text: 'Sila Periksa No KP Pelanggan'
});
// Swal.fire({
// icon: 'error',
// title: 'Amaran!',
// text: 'Sila Periksa No KP Pelanggan'
// });
if(nokp.substr(-1) != '*')
{
Swal.fire({
icon: 'error',
title: 'Amaran!',
text: 'Sila Periksa No KP Pelanggan'
});
event.preventDefault();
return false;
}
event.preventDefault();
return false;
}