{% include 'partial_header.html' %}

Hours for {{ current_user.fullname }}

{{form.period}} ** denotes current pay period
{% for week in weeks %} {% for date in week %} {% endfor %} {% for date in week %} {# Check if any of the workunits are for this day. We will do a similar thing below for end times and shift lengths. #} {% endfor %} {% for date in week %} {% endfor %} {% for date in week %} {% endfor %} {% endfor %}
Date{{ date.strftime("%a %m/%d") }}
Start {% for unit in pp.work_units %} {% if unit.start.day == date.day %} {{ unit.start.strftime("%I:%M%p") }} {% endif %} {% endfor %}
End {% for unit in pp.work_units %} {% if unit.start.day == date.day %} {{ unit.end.strftime("%I:%M%p") }} {% endif %} {% endfor %}
Total {% for unit in pp.work_units %} {% if unit.start.day == date.day %} {{ '%.2f' % (unit.length.seconds / (60*60)) }} {% endif %} {% endfor %}
End date: {{ end_date }}
Payperiod payrate: ${{ '%.2f' % pp.payrate }}
Total Hours: {{ pp.get_total_hours() }} hours ({{ pp.get_total_break_hours() }} hours of break time)
Grand Total Hours: {{ pp.get_total_billable_hours() }} hours
Payroll Amount: ${{ '%.2f' % pp.get_total_payroll_amount() }}
{% include 'partial_footer.html' %}