This commit is contained in:
gsinghpal
2026-03-17 13:32:08 -04:00
parent e56974d46f
commit 595dccc17d
11 changed files with 159 additions and 28 deletions

View File

@@ -343,6 +343,7 @@ class FusionClockAPI(http.Controller):
'attendance_id': attendance.id,
'check_in': fields.Datetime.to_string(attendance.check_in),
'location_name': location.name,
'location_address': location.address or '',
'message': f'Clocked in at {location.name}',
'streak': employee.x_fclk_ontime_streak,
}
@@ -389,6 +390,7 @@ class FusionClockAPI(http.Controller):
'break_minutes': attendance.x_fclk_break_minutes,
'overtime_hours': round(attendance.x_fclk_overtime_hours or 0, 2),
'location_name': location.name,
'location_address': location.address or '',
'message': f'Clocked out from {location.name}',
}
@@ -527,6 +529,7 @@ class FusionClockAPI(http.Controller):
'attendance_id': att.id,
'check_in': fields.Datetime.to_string(att.check_in),
'location_name': att.x_fclk_location_id.name or '',
'location_address': att.x_fclk_location_id.address or '',
'location_id': att.x_fclk_location_id.id or False,
})