{{ project.name }}
Due: {{ project.due_date }}
{{ project.current_hours }} / {{ project.budgeted_hours }}: (Hours / Budgeted Hours @ {{ project.task_rate
}}) -
Report generated on {{ "now"|date('Y-m-d') }}
{% if project.tasks is not empty %}
{{ t('date') }} |
{{ t('description') }} |
{{ t('duration') }} |
{% for task in project.tasks %}
{% for log in task.time_log%}
{{ log.start_date }} |
- {{ log.description }}
- {{ task.user.name }}
|
{{ log.duration|date('h:i:s')}} |
{% endfor %}
{% endfor %}
{% endif %}
{% if project.invoices %}
{{ t('invoices') }}
{{ t('date')}} |
{{ t('invoice_number')}} |
{{ t('amount') }} |
{{ t('balance') }} |
{% set total_amount = 0 %}
{% set total_balance = 0 %}
{% for invoice in project.invoices %}
{{ invoice.date }} |
{{ invoice.number }} |
{{ invoice.amount }} |
{{ invoice.balance }} |
{% set total_amount = total_amount + invoice.amount_raw %}
{% set total_balance = total_balance + invoice.balance_raw %}
{% endfor%}
|
|
{{ total_amount|format_currency(currency_code) }} |
{{ total_balance|format_currency(currency_code) }} |
{% endif %}
{% if project.expenses %}
{{ t('expenses') }}
{{ t('date')}} |
{{ t('number')}} |
{{ t('amount') }} |
{% set total_expense_amount = 0 %}
{% for expense in project.expenses %}
{{ expense.date }} |
{{ expense.number }} |
{{ expense.amount }} |
{% set total_expense_amount = total_expense_amount + expense.amount_raw %}
{% endfor%}
|
|
{{ total_expense_amount|format_currency(currency_code) }} |
{% endif %}
{{ t('summary') }} |
{{ t('amount') }} |
{{ t('project_value') }} |
{{ (project.budgeted_hours * project.task_rate_raw)|format_currency(currency_code) }} |
{{ t('invoice_task_hours') }} |
{{ (project.current_hours * project.task_rate_raw)|format_currency(currency_code) }} |
{{ t('invoiced') }} |
{{ total_amount|format_currency(currency_code) }} |
{{ t('expenses') }} |
{{ total_expense_amount|format_currency(currency_code) }} |
{{ t('profit') }} |
{{ (total_amount - total_expense_amount)|format_currency(currency_code) }} |
{% endfor %}
{% endif %}