mirror of
https://github.com/kevinpapst/kimai2.git
synced 2025-04-30 15:30:11 +00:00

* login redirects to homepage if already being logged-in * fix budget check for entries that were moved to another moth * invoice: fix amount should be decimal if decimal template is used * added new month grouped by project/activity/user report
30 lines
1.2 KiB
Twig
30 lines
1.2 KiB
Twig
{% embed 'reporting/customer/monthly_projects_data.html.twig' with {'decimal': true, 'stats': stats, 'dataType': dataType} only %}
|
|
{% set dataTypeFormat = null %}
|
|
{% if dataType == 'rate' or dataType == 'internalRate' %}
|
|
{% set dataTypeFormat = constant('App\\Export\\Base\\AbstractSpreadsheetRenderer::RATE_FORMAT_NO_CURRENCY') %}
|
|
{% elseif dataType == 'duration' %}
|
|
{% set dataTypeFormat = constant('App\\Export\\Base\\AbstractSpreadsheetRenderer::DURATION_DECIMAL') %}
|
|
{% endif %}
|
|
{% set rowspanStyle = 'vertical-align:center' %}
|
|
{% block user_activity %}
|
|
{% if dataType == 'rate' or dataType == 'internalRate' %}
|
|
{{ value|money(currency) }}
|
|
{% else %}
|
|
{{ value / 3600 }}
|
|
{% endif %}
|
|
{% endblock %}
|
|
{% block project_activity %}
|
|
{% if dataType == 'rate' or dataType == 'internalRate' %}
|
|
{{ value|money(currency) }}
|
|
{% else %}
|
|
{{ value / 3600 }}
|
|
{% endif %}
|
|
{% endblock %}
|
|
{% block project_total %}
|
|
{% if dataType == 'rate' or dataType == 'internalRate' %}
|
|
{{ value|money(currency) }}
|
|
{% else %}
|
|
{{ value / 3600 }}
|
|
{% endif %}
|
|
{% endblock %}
|
|
{% endembed %}
|