{%- set fallback = app.request is not null ? app.request.locale : 'en' -%} {%- set language = model.template.language|default(fallback) -%} {%- set isDecimal = true -%} {%- set currency = model.currency -%} {%- set project = model.query.project -%}
|
{{ 'invoice.to'|trans }}
{{ model.customer.company|default(model.customer.name) }} {{ model.customer.address|nl2br }} {% if model.customer.vatId is not empty %} {{ 'vat_id'|trans }}: {{ model.customer.vatId }} {% endif %} |
{{ 'invoice.from'|trans }}
{{ model.template.company }} {{ model.template.address|trim|nl2br }} {% if model.template.vatId is not empty %} {{ 'vat_id'|trans }}: {{ model.template.vatId }} {% endif %} |
{{ 'invoice.number'|trans }}:
{{ model.invoiceNumber }}
{{ 'invoice.due_days'|trans }}:
{{ model.dueDate|date_short }}
{% if model.customer.number is not empty %}
{{ 'number'|trans }}:
{{ model.customer.number }}
{% endif %}
{% if project is not null and project.orderNumber is not empty %}
{{ 'orderNumber'|trans }}:
{{ project.orderNumber }}
{% endif %}
{{ model.customer.invoiceText|md2html }}
{% endif %}| {{ 'date'|trans }} | {{ 'description'|trans }} | {{ 'unit_price'|trans }} | {{ 'amount'|trans }} | {{ 'total_rate'|trans }} |
|---|---|---|---|---|
| {{ entry.begin|date_short }} | {% if entry.description is not empty %} {{ entry.description|nl2br }} {% else %} {% if entry.activity is not null %}{{ entry.activity.name }} / {% endif %}{{ entry.project.name }} {% endif %} | {{ rate|money(currency) }} | {{ duration }} | {{ entry.rate|money(currency) }} |
| {{ 'invoice.subtotal'|trans }} | {{ model.calculator.subtotal|money(currency) }} | |||
| {{ 'invoice.tax'|trans }} ({{ model.calculator.vat }}%) | {{ model.calculator.tax|money(currency) }} | |||
| {{ 'invoice.total'|trans }} | {{ model.calculator.total|money(currency) }} | |||