Update Employee functionalities: display contract/project name in view details page

This commit is contained in:
Nguyen Ngo
2025-09-19 13:28:33 -04:00
parent 762e477ba1
commit 27f7e9a052
2 changed files with 3 additions and 13 deletions
+1 -1
View File
@@ -6395,7 +6395,7 @@ def employee_detail(employee_index):
"""View employee details with attendance summary"""
try:
# Get employee by index (primary key)
employee = Employee.query.get_or_404(employee_index)
employee = Employee.query.outerjoin(Project, Employee.contractId == Project.id).filter(Employee.index == employee_index).first_or_404()
# Get attendance statistics for this employee
from models.attendance import AttendanceData