{% set fallback = app.request is not null ? app.request.locale : 'en' %} {% set language = model.template.language|default(fallback) %} {% set isDecimal = model.template.decimalDuration|default(false) %} {% set currency = model.currency %}
{{ model.customer.company|default(model.customer.name) }} {{ model.customer.address|nl2br }} |
{% set classLeft = 'text-left' %}
{% set classRight = 'text-right text-nowrap padding-left' %}
|
{{ 'label.description'|trans }} | {{ 'label.unit_price'|trans }} | {{ 'label.amount'|trans }} | {{ 'label.total_rate'|trans }} |
---|---|---|---|
{% 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) }} |
{{ model.template.paymentTerms|md2html }}
{% endif %}