{% import "macros/widgets.html.twig" as widgets %}
{% if model.query.project is not empty and model.query.project.orderNumber is not empty %} {% endif %}
{{ 'invoice.from'|trans }} {% if model.query.user is not empty %} {{ widgets.username(model.query.user) }} {% else %} {{ model.template.company }} {% endif %}
{{ 'label.date'|trans }} {{ model.invoiceDate|month_name|trans }} {{ model.invoiceDate|date('Y') }}
{{ 'label.customer'|trans }} {% if model.customer.number is not empty %}[{{ model.customer.number }}]{% endif %} {{ model.customer.name }} / {{ model.customer.contact }}
{{ 'label.order_number'|trans }} {{ model.query.project.orderNumber }}
{% for entry in model.calculator.entries %} {% endfor %}
{{ 'label.date'|trans }} {{ 'label.activity'|trans }} {{ 'label.hours'|trans }}
{{ entry.begin|date_short }} {{ entry.activity.name }} / {{ entry.activity.project.name }} {{ entry.duration|duration }}
{% if model.template.paymentTerms is not empty %}

{{ 'label.payment_terms'|trans }}

{{ model.template.paymentTerms|trim|nl2br }}

{% endif %}
{{ 'invoice.signature_user'|trans }}
{{ 'invoice.signature_customer'|trans }}