{% extends 'private/base/base.html.twig' %} {% block stylesheets_addition %} {% endblock %} {% block body %}
{% block topBar %} {% embed 'components/topBar.html.twig' %}{% endembed %} {% endblock %} {% block menu %} {% embed 'components/menu.html.twig' %}{% endembed %} {% endblock %}
{% embed 'components/pageTitle.html.twig' %}{% endembed %}
{% if estimate is not null %}

{{ 'estimate.title' | trans }} {{ estimate.estimateReference }} - {{ estimate.client.name }}
{{ 'billing.accountingPeriod' | trans }} {{ estimate.accountingPeriod.id }}

{% for ts in estimate.timeSheets %} {% endfor %}
{{ 'invoice.project.reference' | trans }} {{ 'invoice.project' | trans }} {{ 'invoice.unit' | trans }} {{ 'invoice.rate' | trans }} (€) {{ 'invoice.mileage' | trans }} (€/Km) {{ 'invoice.rem' | trans }} {{ 'invoice.total' | trans }} (€)
{{ ts.project.label|first|upper~ts.project.id }} {{ ts.project.Description }} {{ ts.performance }} {{ (ts.project.rate)|number_format(2, '.', ',') }} {{ ts.project.MileageRate }} X {{ ts.mileage }} {{ ts.mileage * ts.project.MileageRate }} {{ ts.remClient }} {{ ts.getTotal }}
{{ 'invoice.subtotal' | trans }} {{ estimate.getGrandTotal }}
{{ 'invoice.tax' | trans }} {{ estimate.getTax }}
{{ 'invoice.total' | trans }} € {{ estimate.getGrandTotalWithTax }}
{% endif %}
{% for project in projects %} {% endfor %}
{{ 'invoice.unit' | trans }} {{ 'invoice.project' | trans }} {{ 'invoice.mileage' | trans }}
{{ project.defaultHoursDay }} {{ project.label }} {{ project.defaultMileage }}
{% embed 'components/footer.html.twig' %}{% endembed %}
{% embed 'components/sideBar.html.twig' %}{% endembed %} {% block javascripts_addition %} {% endblock %} {% endblock %}