{% extends "timepiece/base.html" %} {% load url from future %} {% load timepiece_tags bootstrap_toolkit %} {% block title %} {{ timesheet_user.get_name_or_username }} - Time Sheet for {{ from_date|date:'M Y' }} {% endblock title %} {% block bodyid %}user-timesheet{% endblock bodyid %} {% block breadcrumb %}{% endblock breadcrumb %} {% block extrajs %} {% endblock extrajs %} {% block content %}

{{ timesheet_user.get_name_or_username }} - Time Sheet for {{ from_date|date:'M Y' }}

{% if project_entries %}

Project Summary

{% for entry in project_entries %} {% endfor %}
Project Hours
{{ entry.project__name}} {{ entry.sum|humanize_hours:"{hours:02d}:{minutes:02d}" }}
{% endif %} {% if entries %}

Billable Summary

Category Hours
Billable{{summary.billable|humanize_hours:"{hours:02d}:{minutes:02d}" }}
Non-billable{{summary.non_billable|humanize_hours:"{hours:02d}:{minutes:02d}" }}
Invoiced{{summary.invoiced|humanize_hours:"{hours:02d}:{minutes:02d}" }}
Uninvoiced{{summary.uninvoiced|humanize_hours:"{hours:02d}:{minutes:02d}" }}
{% else %}

No entries exist for this time sheet.

{% endif %}
{% if entries %} {% url 'view_user_timesheet' timesheet_user.pk 'all-entries' as next_url %} {% for entry in entries %} {% ifchanged entry.start_time|date:"W" %} {% endifchanged %} {% ifchanged entry.start_time|date %} {% else %} {% endifchanged %} {% endfor %}
Date Project Activity Location Status Time In Time Out Breaks Hours Comments
Week of {{ entry.start_time|week_start|date:'M j, Y' }}
{{ entry.start_time|date:"m/d/Y (D)" }}{{ entry.project__name }} {{ entry.activity__name }} {{ entry.location__name }} {{ entry.status|title }} {{ entry.start_time|time }} {{ entry.end_time|time }} {{ entry.seconds_paused|seconds_to_hours|humanize_hours:"{hours:02d}:{minutes:02d}" }} {{ entry.hours|humanize_hours:"{hours:02d}:{minutes:02d}" }} {{ entry.comments|truncatewords:12|urlizetrunc:25|safe }} {% if entry.status == "unverified" or entry.status != 'invoiced' and perms.entries.view_payroll_summary %} Edit {% endif %} {% if perms.entries.view_payroll_summary and entry.status != "unverified" and entry.status != "invoiced" %} | Reject {% endif %}
Total over all entries: {{ summary.total|humanize_hours:"{hours:02d}:{minutes:02d}" }}
{% else %}

No entries exist for this time sheet.

{% endif %}
{% if grouped_totals %} {% for week, week_totals, days in grouped_totals %} {% for day, projects in days %} {% for project, totals in projects.1.iteritems %} {% endfor %} {% endfor %} {% if not forloop.last %} {% endif %} {% endfor %}
Week of {{ week|date:'M j, Y'}} Billable Non-Billable Total
{% if forloop.counter == 1 %} {{day|date:"m/d/Y (D)"}} {% endif %} {{project}} {{ totals.billable|humanize_hours:"{hours:02d}:{minutes:02d}" }} {{ totals.non_billable|humanize_hours:"{hours:02d}:{minutes:02d}" }} {{ totals.total|humanize_hours:"{hours:02d}:{minutes:02d}" }}
{{day|date:"D"}}: {{ projects.0.billable|humanize_hours:"{hours:02d}:{minutes:02d}" }} {{ projects.0.non_billable|humanize_hours:"{hours:02d}:{minutes:02d}" }} {{ projects.0.total|humanize_hours:"{hours:02d}:{minutes:02d}" }}
Totals for this week: {{ week_totals.billable|humanize_hours:"{hours:02d}:{minutes:02d}" }} {{ week_totals.non_billable|humanize_hours:"{hours:02d}:{minutes:02d}" }} {{ week_totals.total|humanize_hours:"{hours:02d}:{minutes:02d}" }}
 
Overall total for the period: {{ summary.total|humanize_hours:"{hours:02d}:{minutes:02d}" }}
{% else %}

No entries exist for this time sheet.

{% endif %}
{% endblock content %}