Liste des recrutements {% if isEstimated is defined and isEstimated == false and prestation.enabled != 1 %} {% endif %}

{% set totalPresta = 0 %} {% if prestation.recrutements|length > 0 %} {% if isEstimated is defined and isEstimated == false and prestation.enabled != 1 %} {% endif %} {% set idEmbauche = 1 %} {% for recrutement in prestation.recrutements %} {% if isEstimated is defined and isEstimated == false and prestation.enabled != 1 %} {% else %} {% endif %} {% if recrutement.statutEstimation == "estimé" and (recrutement.prestation.statutEstimation == "Validée Lampyris" or recrutement.prestation.statutEstimation == "Validée") %} {% endif %} {% endfor %}
# Prestataire Métier Heure(s)/j Jour(s) de travail Type salaire Salaire/j (€) Total (€) Embauche
{{ idEmbauche }} {% set idEmbauche = idEmbauche + 1 %} {{ recrutement.intermittent }} {{ recrutement.typePrestation }} {{ recrutement.heuresParJour }} {{ recrutement.recrutementDates|length }} {{ recrutement.typeSalaire }} {{ recrutement.salaireParJour }} {% 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 %} {% set colorInfo = "red" %} {% set colorButton = "danger" %} {% if nbEstimations > 0 and nbEstimations < prestation.recrutements|length %} {% set colorInfo = "yellow" %} {% set colorButton = "warning" %} {% elseif nbEstimations == prestation.recrutements|length %} {% set colorInfo = "green" %} {% set colorButton = "success" %} {% endif %}
{{ nbEstimations }} estimation{% if nbEstimations > 1 %}s{% endif %} / {{ prestation.recrutements|length }} {% if prestation.statutEstimation == "Validée Lampyris" or prestation.statutEstimation == "Validée" %}pour un total de {{ totalEstimation }} € HT{% endif %}
{% if prestation.statutEstimation is null %} {% elseif nbEstimations > 0 and prestation.statutEstimation.nom == "A estimer" %}
Vous avez envoyé une demande de validation de chiffrage, le recrutement n'est plus modifiable.
{% elseif prestation.statutEstimation.nom == "Validée Lampyris" %}
Vous avez reçu une estimation de chiffrage, le recrutement n'est plus modifiable.
{% endif %} {% if prestation.statutEstimation is not null and prestation.statutEstimation.nom == "Validée" %}
Vous avez accepté le chiffrage, le recrutement n'est plus modifiable, vous pouvez créer un devis ou une facture.
{% endif %} {% else %} {% include 'app/noResult.html.twig' %} {% endif %}