{% set language = invoice['invoice.language'] %} {% set currency = model.currency %}
{{ 'invoice.number'|trans({}, 'messages', language) }}:
{{ model.invoiceNumber }}
{{ 'invoice.due_days'|trans({}, 'messages', language) }}:
{{ model.dueDate|date_short }}
| {{ 'date'|trans({}, 'messages', language) }} | {{ 'description'|trans({}, 'messages', language) }} | {{ 'unit_price'|trans({}, 'messages', language) }} | {{ 'amount'|trans({}, 'messages', language) }} | {{ 'total_rate'|trans({}, 'messages', language) }} |
|---|---|---|---|---|
| {{ 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({}, 'messages', language) }} | {{ model.calculator.subtotal|money(currency) }} | |||
| {{ 'invoice.tax'|trans({}, 'messages', language) }} ({{ model.calculator.vat }}%) | {{ model.calculator.tax|money(currency) }} | |||
| {{ 'invoice.total'|trans({}, 'messages', language) }} | {{ model.calculator.total|money(currency) }} | |||