{% import "macros/widgets.html.twig" as widgets %} {% extends 'invoice/layout.html.twig' %} {% block invoice %} {% set isDecimal = model.template.decimalDuration|default(false) %}
{{ 'invoice.from'|trans }} | {% if model.query.user is not empty %} {{ widgets.username(model.query.user) }} {% else %} {{ model.template.company }} {% endif %} |
---|---|
{{ 'label.date'|trans }} | {% if model.query.begin|date('m') != model.query.end|date('m') or model.query.begin|date('Y') != model.query.end|date('Y') %} {{ model.query.begin|date_short }} - {{ model.query.end|date_short }} {% else %} {{ model.query.end|month_name }} {{ model.query.end|date('Y') }} {% endif %} |
{{ 'label.customer'|trans }} | {% if model.customer.number is not empty %}[{{ model.customer.number }}]{% endif %} {{ model.customer.name }}{% if model.customer.contact is not empty %} / {{ model.customer.contact }}{% endif %} |
{{ 'label.orderNumber'|trans }} | {{ model.query.project.orderNumber }} |
{{ 'label.date'|trans }} | {% if model.query.user is empty %}{{ 'label.user'|trans }} | {% endif %}{{ 'label.activity'|trans }} | {{ 'label.hours'|trans }} |
---|---|---|---|
{{ entry.begin|date_short }} | {% if model.query.user is empty %}{{ widgets.username(entry.user) }} | {% endif %}{% if entry.description is not empty %} {{ entry.description|nl2br }} {% else %} {% if entry.activity is not null %}{{ entry.activity.name }} / {% endif %}{{ entry.project.name }} {% endif %} | {{ entry.duration|duration(isDecimal) }} |
{% if model.query.user is empty %} | {% endif %} | {{ 'invoice.total_working_time'|trans }} | {{ model.calculator.timeWorked|duration(isDecimal) }} |
{{ 'label.payment_terms'|trans }}
{{ model.template.paymentTerms|trim|nl2br }}
{% endif %}{{ 'invoice.signature_user'|trans }} |
---|
{{ 'invoice.signature_customer'|trans }} |