diff --git a/app/Views/newClientModal.php b/app/Views/newClientModal.php index b0d72494..9a56eaa5 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 @@ -228,19 +233,17 @@ if(form_type != 1){ setTimeout(function(){ + $('#client_id').val(res.client_id).change(); $('#client_id').prepend($('