{% extends 'page-xhr-modal.html.twig' %} {% block title %}Resultat simulation{% endblock %} {% block style %} {% endblock %} {% block page %}
{% if resultats is defined and resultats | length > 0 %}
{% set coutTotal = 0 %} {% for key, composant in composantsPlusBas %}
{{ composant.nom }} Details
{% set res = [] %} {% for composantTest in composantHierarchie[key] %} {% endfor %} {% for identifiantBeneficiaire, beneficiaire in listeBeneficiaires %} {% set tauxParBeneficiaireHt = null %} {% set coutParBeneficiaireHt = null %} {% set coutParBeneficiaireTtc = null %} {% for composantResultat in composantHierarchie[key] %} {% if composantResultat.idTypeComposant.libelle != 'Tarificateur' %} {% set coutBeneficiaireHt = null %} {% set coutBeneficiaireTtc = null %} {% if resultats[composantResultat.id].getResultatsFormuleHTPourBeneficiaire()[identifiantBeneficiaire] is defined %} {% set coutBeneficiaireHt = resultats[composantResultat.id].getResultatsFormuleHTPourBeneficiaire()[identifiantBeneficiaire] %} {% endif %} {% if resultats[composantResultat.id].getResultatsFormuleDataPourBeneficiaire()[identifiantBeneficiaire] is defined %} {% for key,value in resultats[composantResultat.id].getResultatsFormuleDataPourBeneficiaire()[identifiantBeneficiaire] %} {% if key == "taux" %} {% set tauxParBeneficiaireHt = value %} {% endif %} {% endfor %} {% endif %} {% if resultats[composantResultat.id].getResultatsFormuleTTCPourBeneficiaire()[identifiantBeneficiaire] is defined %} {% set coutBeneficiaireTtc = resultats[composantResultat.id].getResultatsFormuleTTCPourBeneficiaire()[identifiantBeneficiaire] %} {% endif %} {% if coutBeneficiaireHt is not null %} {% if coutParBeneficiaireHt is null %} {% set coutParBeneficiaireHt = 0 %} {% endif %} {% set coutParBeneficiaireHt = coutParBeneficiaireHt + coutBeneficiaireHt %} {% endif %} {% if coutBeneficiaireTtc is not null %} {% if coutParBeneficiaireTtc is null %} {% set coutParBeneficiaireTtc = 0 %} {% endif %} {% set coutParBeneficiaireTtc = coutParBeneficiaireTtc + coutBeneficiaireTtc %} {% endif %} {% endif %} {% endfor %} {% endfor %} {% set coutTotalFraisFixe = null %} {% for composantResultat in composantHierarchie[key] %} {% set coutFraisFixe = resultats[composantResultat.id].getResultatTarifBaseComposant() %} {% if coutFraisFixe is not null %} {% if coutTotalFraisFixe is null %}{% set coutTotalFraisFixe = 0 %}{% endif %} {% set coutTotalFraisFixe = coutTotalFraisFixe + coutFraisFixe %} {% endif %} {% endfor %} {% set coutTotalComposantHt = null %} {% set coutTotalComposant = null %} {% for composantResultat in composantHierarchie[key] %} {% set coutComposantHt = resultats[composantResultat.id].getResultatTotalHT() %} {% set coutComposant = resultats[composantResultat.id].getResultatTotal() %} {% if coutTotalComposantHt is null %} {% set coutTotalComposantHt = 0 %} {% endif %} {% set coutTotalComposantHt = coutTotalComposantHt + coutComposantHt %} {% if coutTotalComposant is null %} {% set coutTotalComposant = 0 %} {% endif %} {% set coutTotalComposant = coutTotalComposant + coutComposant %} {% endfor %}
Beneficiaires Taux{{ composantTest.nom }}Total mensuel (HT) Total mensuel (TTC) Total annuel (HT) Total annuel (TTC)
{{ rolesDisponible[beneficiaire.getIdRoleBeneficiaire].libelle }}{{ tauxParBeneficiaireHt }}{% if coutBeneficiaireHt is not null %}{{ coutBeneficiaireTtc }}€ ({{ coutBeneficiaireHt }}€HT){% endif %}{% if coutParBeneficiaireHt is not null %}{{ coutParBeneficiaireHt }}€ {% endif %} {% if coutParBeneficiaireTtc is not null %}{{ coutParBeneficiaireTtc }}€ {% endif %} {% if coutParBeneficiaireTtc is not null %}{{ coutParBeneficiaireHt * 12}}€{% endif %} {% if coutParBeneficiaireTtc is not null %}{{ coutParBeneficiaireTtc * 12}}€{% endif %}
Frais fixe par composants {% if coutFraisFixe is not null %}{{ coutFraisFixe }}€{% endif %}{% if coutTotalFraisFixe is not null %}{{ coutTotalFraisFixe }} €{% endif %} {% if coutTotalFraisFixe is not null %}{{ coutTotalFraisFixe }} €{% endif %} {% if coutTotalFraisFixe is not null %}{{ coutTotalFraisFixe * 12 }} €{% endif %} {% if coutTotalFraisFixe is not null %}{{ coutTotalFraisFixe * 12 }} €{% endif %}
Total par composants {% if coutComposantHt is not null %}{{ coutComposantHt }}€ {% endif %}{% if coutTotalComposantHt is not null and coutTotalComposant is not null %}{{ coutTotalComposantHt }}€ {% endif %} {% if coutTotalComposantHt is not null and coutTotalComposant is not null %}{{ coutTotalComposant }}€ {% endif %} {% if coutTotalComposantHt is not null and coutTotalComposant is not null %}{{ coutTotalComposantHt * 12 }}€ {% endif %} {% if coutTotalComposantHt is not null and coutTotalComposant is not null %}{{ coutTotalComposant * 12}}€ {% endif %}
{% endfor %}
{% endif %}
{% endblock %}