{% if invoice['query.project.name'] is defined %} {% endif %} {% if invoice['query.activity.name'] is defined %} {% endif %}
{{ 'invoice.from'|trans }} {% if not invoice['user.see_others'] and invoice['user.display'] is defined %} {{ invoice['user.display'] }} {% else %} {{ invoice['template.company'] }} {% endif %}
{{ 'date'|trans }} {% if invoice['query.begin_month_number'] != invoice['query.end_month_number'] or invoice['query.begin_year'] != invoice['query.end_year'] %} {{ invoice['query.begin'] }} - {{ invoice['query.end'] }} {% else %} {{ invoice['query.end_month'] }} {{ invoice['query.end_year'] }} {% endif %}
{{ 'customer'|trans }} {% if invoice['customer.number'] is not empty %} [{{ invoice['customer.number'] }}] {% endif %} {{ invoice['customer.name'] }} {% if invoice['customer.contact'] is not empty %} / {{ invoice['customer.contact'] }} {% endif %}
{{ 'project'|trans }} {{ invoice['query.project.name'] }} {% if invoice['query.project.order_number'] is not empty %} ({{ 'orderNumber'|trans }}: {{ invoice['query.project.order_number'] }}) {% endif %}
{{ 'activity'|trans }} {{ invoice['query.activity.name'] }}
{% if invoice['user.see_others'] %} {% endif %} {% for timesheet in entries %} {% if invoice['user.see_others'] %} {% endif %} {% endfor %} {% if invoice['user.see_others'] %} {% endif %}
{{ 'date'|trans }}{{ 'user'|trans }}{{ 'activity'|trans }} {{ 'hours'|trans }}
{{ timesheet['entry.begin'] }}{{ timesheet['entry.user_display'] }} {% if timesheet['entry.description'] is not empty %} {{ timesheet['entry.description']|nl2br }} {% else %} {% if timesheet['entry.activity'] is defined %} {{ timesheet['entry.activity'] }} / {% endif %} {{ timesheet['entry.project'] }} {% endif %} {{ timesheet['entry.amount'] }}
{{ 'invoice.total_working_time'|trans }} {{ invoice['invoice.duration_decimal'] }}
{% if invoice['template.payment_terms'] is not empty %}

{{ 'payment_terms'|trans }}

{{ invoice['template.payment_terms']|md2html }}
{% endif %}

{{ 'invoice.signature_user'|trans }}

{{ 'invoice.signature_customer'|trans }}