{% extends 'invoice/layout.html.twig' %} {% block invoice %} {% set isDecimal = model.template.decimalDuration|default(false) %} {% set currency = model.currency %}
{{ 'invoice.number'|trans }}:
{{ model.invoiceNumber }}
{{ 'invoice.due_days'|trans }}:
{{ model.dueDate|date_short }}
{{ 'label.date'|trans }} | {{ 'label.description'|trans }} | {{ 'label.unit_price'|trans }} | {{ 'label.amount'|trans }} | {{ 'label.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) }} |