{% extends "base.html" %} {% block content %}

{{ _('User Report') }}

{{ _('Export entries (Excel)') }} {{ _('Select columns:') }}
{% for username, totals in user_totals.items() %} {% else %} {% endfor %}
User Total Hours Regular Hours Overtime Hours Undertime Hours Billable Hours Days with Overtime
{{ username }} {{ "%.2f"|format(totals.hours) }} {{ "%.2f"|format(totals.regular_hours) if totals.regular_hours is defined else "%.2f"|format(totals.hours) }} {% if totals.overtime_hours is defined and totals.overtime_hours > 0 %} {{ "%.2f"|format(totals.overtime_hours) }} {% else %} 0.00 {% endif %} {% if totals.undertime_hours is defined and totals.undertime_hours > 0 %} {{ "%.2f"|format(totals.undertime_hours) }} {% else %} 0.00 {% endif %} {{ "%.2f"|format(totals.billable_hours) }} {% if totals.days_with_overtime is defined and totals.days_with_overtime > 0 %} {{ totals.days_with_overtime }} {% else %} - {% endif %}

{{ _('No data for the selected period.') }}

{{ _('Try a different date range or ensure time has been logged.') }}

{% if user_totals %}

{{ _('About Overtime Tracking') }}

Overtime is calculated based on each user's standard working hours per day setting. Hours worked beyond the standard are counted as overtime. Users can configure their standard hours in Settings.

{% endif %}
{% endblock %}