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

Payroll Report

{% date_filters "months" %}
{% for cal in cals %} {{ cal|safe }} {% endfor %}

Weekly Summary

{% for week in all_weeks %} {% endfor %} {% for period in periods %} {% with period.user as user %} 40.00 %} class='overtime'{% endif %}> {% for week in all_weeks %} {% endfor %} {% endwith %} {% endfor %}
 {{ week|date:"n/j" }}Overtime
{{ user.first_name }} {{ user.last_name }}{% weekly_hours_worked period week %}{% monthly_overtime period from_date %}

Hourly Summary

{% for period in periods %} {% with period.user as user %} {% if user.summary %} {% else %} {% endif %} {% endwith %} {% endfor %}
  Billable Non-Billable Total Worked Paid Leave Grand Total
{{ user.first_name }} {{ user.last_name }}{% if user.summary.billable %}{{ user.summary.billable }} ({% widthratio user.summary.billable user.summary.total_worked 100 %}%){% endif %} {% if user.summary.non_billable %}{{ user.summary.non_billable }} ({% widthratio user.summary.non_billable user.summary.total_worked 100 %}%){% endif %} {% if user.summary.total_worked %}{{ user.summary.total_worked }}{% endif %} {% for leave_type, leave_hours in user.summary.paid_leave.iteritems %} {% if leave_hours %} {{ leave_type|capfirst }}: {{ leave_hours }}
{% endif %} {% endfor %}
{{ user.summary.total|default_if_none:'' }} 
{% endblock %}