From fa493bb73d7b4d0aca9aabc4cb99ba5073091b12 Mon Sep 17 00:00:00 2001 From: Yehan Wasura Date: Thu, 26 Dec 2024 20:21:30 +0530 Subject: [PATCH] updated a little thing when importing employees --- gui/tools/bulk_employee_import.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gui/tools/bulk_employee_import.py b/gui/tools/bulk_employee_import.py index 7422d40..eaa8dc4 100644 --- a/gui/tools/bulk_employee_import.py +++ b/gui/tools/bulk_employee_import.py @@ -109,10 +109,10 @@ def import_employees(self): name = row.get("Name", "") division = row.get("Division", self.default_division) - if not division or division == self.default_division: - messagebox.showerror("Error", f"Division is not specified for employee '{name}' (ID: {emp_id}). PLEASE SELECT AN DIVISION FROM THE DROPDOWN, IT WIL BE LABALLED AS 'NaN'.") - if division not in self.divisions: - messagebox.showerror("Error", f"Division: {division} is not found in the database. Please select an available division from the dropdown for the employee : {emp_id} - {name}" ) + #if not division or division == self.default_division: + # messagebox.showerror("Error", f"Division is not specified for employee '{name}' (ID: {emp_id}). PLEASE SELECT AN DIVISION FROM THE DROPDOWN, IT WIL BE LABALLED AS 'NaN'.") + #if division not in self.divisions: + # messagebox.showerror("Error", f"Division: {division} is not found in the database. Please select an available division from the dropdown for the employee : {emp_id} - {name}" ) self.add_row(emp_id, name, division) except Exception as e: