{% extends 'timepiece/time-sheet/base.html' %} {% load timepiece_tags %} {% block title %}Payroll Summary{% endblock %} {% block content %}

Reports

{{ year_month_form }}
{% show_cal from_date -1 %}
{% show_cal from_date 0 %}

Weekly Summary

{% if weekly_totals.0.0 %} {% for date in date_headers %} {% endfor %} {% for rows, totals in weekly_totals %} {% for name, hours in rows %} {% for num in hours %} {% endfor %} {% endfor %} {% endfor %}
Name{{date|date:"M/d"}}Overtime
{{name}}{{num}}
{% else %}

No entries found.

{% endif %}

Hourly Summary

{% if monthly_totals %} {% for name, hours, descs, all in monthly_totals %} {% for num in hours|slice:"0:2" %} {% endfor %} {% endfor %}
Name Billable Non-Billable Total Worked Paid Leave Grand Total
{{name.1}} {{name.0}}{{num.0|default:""}} {% if num.1 %}({{num.1}}%){% endif %}{{hours.2}} {% for desc in descs %} {{desc.0}}:  {{desc.1}} {% endfor %} {{all}}
{% else %}

No entries found.

{% endif %} {% endblock %}