From 68c3d72741c4f653366bca0d062ca146c31eddf2 Mon Sep 17 00:00:00 2001 From: Srinivas-Saravanan Date: Sat, 17 May 2025 11:06:56 +0530 Subject: [PATCH] FIX_LEADS_FORM_HANDLE_EDIT --- app/Views/leads_form_handler.php | 226 ++++++++++++++++++++----------- 1 file changed, 148 insertions(+), 78 deletions(-) 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)) {