{% include 'partial_header.html' %}
{% if admin %}
Hours for {{ selected_user.netid }} on {{ start_date }}
{% else %}
Your hours for {{ start_date }}
{% endif %}
{% if admin %}
{% endif %}
{% for week in weeks %}
Date |
{% for date in week %}
{{ date.strftime("%a %m/%d") }} |
{% endfor %}
Start |
{% 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. #}
{% for unit in pp.work_units %}
{% if unit.start.day == date.day %}
{{ unit.start.strftime("%I:%M%p") }}
{% endif %}
{% endfor %}
|
{% endfor %}
End |
{% for date in week %}
{% for unit in pp.work_units %}
{% if unit.start.day == date.day %}
{{ unit.end.strftime("%I:%M%p") }}
{% endif %}
{% endfor %}
|
{% endfor %}
Total |
{% for date in week %}
{% for unit in pp.work_units %}
{% if unit.start.day == date.day %}
{{ '%.2f' % (unit.length.seconds / (60*60)) }}
{% endif %}
{% endfor %}
|
{% endfor %}
{% 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' %}