{% extends "timepiece/base.html" %} {% load timepiece_tags %} {% load bootstrap_toolkit %} {% load url from future %} {% block extrajs %} {% endblock %} {% block breadcrumb %}{% endblock breadcrumb %} {% block title %} {{ timesheet_user.get_name_or_username }} - Time Sheet for {{ from_date|date:'M Y' }} {% endblock %} {% block bodyid %}user-timesheet{% endblock bodyid %} {% 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|floatformat:2 }}
{% endif %} {% if entries %}

Billable Summary

Category Hours
Billable{{summary.billable|floatformat:2 }}
Non-billable{{summary.non_billable|floatformat:2 }}
Invoiced{{summary.invoiced|floatformat:2 }}
Uninvoiced{{summary.uninvoiced|floatformat:2 }}
{% 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" %} {# Close table before new table starts (ignore first table) #} {% if entry.start_time.weekday == 0 and not forloop.first %} {% endif %} {% endifchanged %} {% ifchanged entry.start_time|date %} {% else %} {% endifchanged %} {# Close the last table #} {% if forloop.last %}
Date Project Activity Location Status Time In Time Out Breaks Hours Comments
Week of {% week_start entry.start_time %}
{{ 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|floatformat:2 }} {{ entry.hours|floatformat:2 }} {{ entry.comments|truncatewords:12|urlizetrunc:25|safe }} {% if entry.status == "unverified" or entry.status != 'invoiced' and perms.timepiece.view_payroll_summary %} Edit {% endif %} {% if perms.timepiece.view_payroll_summary and entry.status != "unverified" and entry.status != "invoiced" %} | Reject {% endif %}
{% endif %} {% endfor %}
Overall total for the period: {{ summary.total|floatformat:2 }}
{% 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 %}
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|floatformat:2 }} {{ totals.non_billable|floatformat:2 }} {{ totals.total|floatformat:2 }}
{{day|date:"D"}}: {{ projects.0.billable|floatformat:2 }} {{ projects.0.non_billable|floatformat:2 }} {{ projects.0.total|floatformat:2 }}
Totals for this week: {{ week_totals.billable|floatformat:2 }} {{ week_totals.non_billable|floatformat:2 }} {{ week_totals.total|floatformat:2 }}
{% endfor %}
Overall total for the period: {{ summary.total|floatformat:2 }}
{% else %}

No entries exist for this time sheet.

{% endif %}
{% endblock %}