diff --git a/app/Views/newClientModal.php b/app/Views/newClientModal.php index b0d72494..e5a77895 100644 --- a/app/Views/newClientModal.php +++ b/app/Views/newClientModal.php @@ -149,8 +149,13 @@ // If GST is currently validating, wait for it to complete if (isGSTValidating) { - toastr.info('Please wait while we validate your GST number...', 'Validating'); - return; + if($('#Owner_type').val() == 1){ + toastr.info('Please wait while we validate your GST number...', 'Validating'); + return; + }else if ($('#client_type').val() == 1){ + toastr.info('Please wait while we validate your GST number...', 'Validating'); + return; + } } // If GST validation failed, prevent submission