Team Hours
Team Hours routes control the dashboard header Start Work / Time clock for the logged-in employee (MySQL team_hours). This is not the same as Working Time, which stores customer time_counter rows.
Clock
- TeamHours.StartStop (alias TeamHours.Setting) starts or stops the employee clock, matching dashboard/setting/team_hours_setting.
- Use timer_action=start|stop or dashboard val=1|0.
- TeamHours.WhenStop matches dashboard/setting/team_hours_when_stop before a stop.
- TeamHours.Get / Status returns whether the clock is currently running.
History
- TeamHours.List and TeamHours.Count return past team_hours sessions for the logged-in user.
Common Flow
- Call TeamHours.Get to show the header clock state.
- Call TeamHours.StartStop with timer_action=start to begin work.
- Optional: TeamHours.WhenStop before stopping, then StartStop with timer_action=stop and optional note.