{% extends 'base.html.twig' %} {% block title %}Prestation {% endblock %} {% block body %} {# {% include 'app/modal.html.twig' %} #}

Estimation de facturation

{% set totalPresta = 0 %} {% if prestation.recrutements|length > 0 %} {% set idEmbauche = 1 %} {% for recrutement in prestation.recrutements %} {% if recrutement.statutEstimation == "estimé" %} {% endif %} {% endfor %}
# Prestataire Métier Heure(s)/j Jour(s) de travail Type salaire Salaire/j (€) Total (€) Jours à déclarer
{% if recrutement.typeSalaire == "Coût global (HT)" %} {% else %} {% endif %} {{ idEmbauche }} {% set idEmbauche = idEmbauche + 1 %} {{ recrutement.intermittent }} {{ recrutement.typePrestation }} {{ recrutement.heuresParJour }} {{ recrutement.recrutementDates|length }} {{ recrutement.salaireParJour }} {{ recrutement.typeSalaire }} {% set total = recrutement.recrutementDates|length * recrutement.salaireParJour %} {{ total }} {% for recrutementDate in recrutement.recrutementDates %}{{ recrutementDate.date|date('d/m/Y') }}
{% endfor %}
Coût total du salaire (€): {{ recrutement.estimation}} {% if recrutement.commentaireEstimation != '' %}Commentaires: {{ recrutement.commentaireEstimation}}{% endif %}
{% set nbEstimations = 0 %} {% set totalEstimation = 0 %} {% for recrutement in prestation.recrutements %} {% if recrutement.statutEstimation == "estimé" %} {% set nbEstimations = nbEstimations + 1 %} {% set totalEstimation = totalEstimation + recrutement.estimation %} {% endif %} {% endfor %}
{{ nbEstimations }} estimation{% if nbEstimations > 1 %}s{% endif %} pour un total de {{ totalEstimation }} € HT
{% if nbEstimations < prestation.recrutements|length %}
Vous n'avez pas encore estimé toutes les prestations
{% endif %} {% else %} {% include 'app/noResult.html.twig' %} {% endif %}

{#

#}
{% endblock %}