{% if project_entries %}
Project Summary
Project |
Hours |
{% for entry in project_entries %}
{{ entry.project__name}} |
{{ entry.sum|floatformat:2 }} |
{% endfor %}
{% 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 %}
Date |
Project |
Activity |
Location |
Status |
Time In |
Time Out |
Breaks |
Hours |
|
{% endifchanged %}
{% ifchanged entry.start_time|date %}
{{ entry.start_time|date:"m/d/Y (D)" }} |
{% else %}
|
{% endifchanged %}
{{ 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 }} |
{% 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 %}
|
{# Close the last table #}
{% if forloop.last %}
{% 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 %}
{% 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 }} |
{% endfor %}
|
{{day|date:"D"}}: |
{{ projects.0.billable|floatformat:2 }} |
{{ projects.0.non_billable|floatformat:2 }} |
{{ projects.0.total|floatformat:2 }} |
{% endfor %}
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 %}