Skip to content

Commit

Permalink
updated a little thing when importing employees
Browse files Browse the repository at this point in the history
  • Loading branch information
RezSat committed Dec 26, 2024
1 parent 816db34 commit fa493bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gui/tools/bulk_employee_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fa493bb

Please sign in to comment.