diff --git a/app/Views/leads_form_handler.php b/app/Views/leads_form_handler.php index 94db97a4..023dc0d3 100644 --- a/app/Views/leads_form_handler.php +++ b/app/Views/leads_form_handler.php @@ -292,6 +292,7 @@ if (isset($selected_lead_type)) { } else { $('#source_policy_id').empty(); + // let lead_type = data.lead_type || null; if (temp_branch_id == 0) { console.log("Step 1: temp_branch_id is 0 - No Policies Found for the selected branch"); console.log('second client_branch_id', client_branch_id); @@ -301,11 +302,17 @@ if (isset($selected_lead_type)) { } else { console.log("Step 3: v exists - Assigning temp_branch_id = client_branch_id"); temp_branch_id = client_id; - toastr.warning("No Policies Found for the selected Branch", 'Warning'); + if (lead_type != 3) { + + toastr.warning("No Policies Found for the selected Branch", 'Warning'); + } } } else { console.log("Step 4: temp_branch_id is not 0 - Showing warning"); - toastr.warning("No Policies Found for the selected Branch", 'Warning'); + if (lead_type != 3) { + + toastr.warning("No Policies Found for the selected Branch", 'Warning'); + } } } @@ -485,6 +492,8 @@ if (isset($selected_lead_type)) {