diff --git a/app/Controllers/EmployeeServiceController.php b/app/Controllers/EmployeeServiceController.php index d27444b8..5d65c4a4 100755 --- a/app/Controllers/EmployeeServiceController.php +++ b/app/Controllers/EmployeeServiceController.php @@ -1383,11 +1383,11 @@ class EmployeeServiceController extends AdminController { // dd($employee); $existing_endorsements = $this->empEndorsementModel->where('actions','d') - ->where('table_name','employees') + ->where('table_name','employee_polices') ->where('endorsement_id is null') ->where('emp_code',$employee['emp_code']) ->where('name',$employee['name']) - ->where('field_name','emp_status') + ->where('field_name','status') ->where('status !=','truncated') ->where('is_active', 1) ->findAll(); diff --git a/app/Views/leads_form_handler.php b/app/Views/leads_form_handler.php index c6f463df..11ba47a7 100644 --- a/app/Views/leads_form_handler.php +++ b/app/Views/leads_form_handler.php @@ -458,9 +458,19 @@ if (isset($selected_lead_type)) {