{% import "macros/widgets.html.twig" as widgets %} {% import "macros/datatables.html.twig" as tables %} {% extends 'invoice/layout.html.twig' %} {% block invoice %}
{% for field in metaColumns %} {% endfor %} {% set timeWorked = 0 %} {% for entry in entries %} {% set timeWorked = timeWorked + entry.duration %} {% for field in metaColumns %} {% endfor %} {% endfor %} {% for field in metaColumns %} {% endfor %}
{{ 'label.date'|trans }} {{ 'label.description'|trans }}{{ field.label|trans }}{{ 'label.hours'|trans }}
{{ entry.begin|date_short }} {% if entry.description is not empty %}
{{ entry.description|escape|desc2html }}
{% endif %} {{ 'label.activity'|trans }}: {{ entry.activity.name }} | {{ 'label.project'|trans }}: {{ entry.project.name }} | {{ 'label.customer'|trans }}: {{ entry.project.customer.name }}
{{ tables.datatable_meta_column(entry, field) }}{{ entry.duration|duration }}
{{ 'invoice.total_working_time'|trans }} {{ timeWorked|duration }}
{% endblock %} {% block print_button %}{% endblock %}