diff --git a/resources/views/customers/v2/index.blade.php b/resources/views/customers/v2/index.blade.php index 934d9bf..98b79c0 100644 --- a/resources/views/customers/v2/index.blade.php +++ b/resources/views/customers/v2/index.blade.php @@ -1220,22 +1220,29 @@ 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; + if(nokp.substr(-1) != '*') + { + console.log('ada special characters'); + 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' - }); - event.preventDefault(); - return false; + if(nokp.substr(-1) != '*') + { + Swal.fire({ + icon: 'error', + title: 'Amaran!', + text: 'Sila Periksa No KP Pelanggan' + }); + event.preventDefault(); + return false; + } } }else if(id_type=='passport'){ // if(nokp.length < 5){ @@ -1282,4 +1289,4 @@ @endpush -@endsection +@endsection \ No newline at end of file diff --git a/resources/views/customers/v2/info.blade.php b/resources/views/customers/v2/info.blade.php index 0b951e4..8ed773c 100644 --- a/resources/views/customers/v2/info.blade.php +++ b/resources/views/customers/v2/info.blade.php @@ -246,7 +246,7 @@ - + {{-- --}} diff --git a/resources/views/penebusan/v2/index.blade.php b/resources/views/penebusan/v2/index.blade.php index 12bcfb6..002a6d7 100644 --- a/resources/views/penebusan/v2/index.blade.php +++ b/resources/views/penebusan/v2/index.blade.php @@ -70,14 +70,14 @@ -