{% import "macros/widgets.html.twig" as widgets %} {% extends 'invoice/layout.html.twig' %} {% block invoice %}
{{ '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|trans }} {{ 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.order_number'|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 }} {% else %} {{ entry.activity.name }} / {{ entry.project.name }} {% endif %} | {{ entry.duration|duration }} |
{{ 'invoice.total_working_time'|trans }} | {{ model.calculator.timeWorked|duration }} |
{{ 'label.payment_terms'|trans }}
{{ model.template.paymentTerms|trim|nl2br }}
{% endif %}{{ 'invoice.signature_user'|trans }} |
---|
{{ 'invoice.signature_customer'|trans }} |