{% extends 'page-xhr-modal.html.twig' %} {% block title %}Resultat simulation{% endblock %} {% block style %} {% endblock %} {% block page %}
| Beneficiaires | Taux | {% set res = [] %} {% for composantTest in composantHierarchie[key] %}{{ composantTest.nom }} | {% endfor %}Total mensuel (HT) | Total mensuel (TTC) | Total annuel (HT) | Total annuel (TTC) |
|---|---|---|---|---|---|---|
| {{ rolesDisponible[beneficiaire.getIdRoleBeneficiaire].libelle }} | {% 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 %}{{ tauxParBeneficiaireHt }} | {% endif %} {% endfor %} {% endif %} {% if resultats[composantResultat.id].getResultatsFormuleTTCPourBeneficiaire()[identifiantBeneficiaire] is defined %} {% set coutBeneficiaireTtc = resultats[composantResultat.id].getResultatsFormuleTTCPourBeneficiaire()[identifiantBeneficiaire] %} {% endif %}{% if coutBeneficiaireHt is not null %}{{ coutBeneficiaireTtc }}€ ({{ coutBeneficiaireHt }}€HT){% 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 %}{% 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 | {% set coutTotalFraisFixe = null %} {% for composantResultat in composantHierarchie[key] %} {% set coutFraisFixe = resultats[composantResultat.id].getResultatTarifBaseComposant() %} | {% if coutFraisFixe is not null %}{{ coutFraisFixe }}€{% endif %} | {% if coutFraisFixe is not null %} {% if coutTotalFraisFixe is null %}{% set coutTotalFraisFixe = 0 %}{% endif %} {% set coutTotalFraisFixe = coutTotalFraisFixe + coutFraisFixe %} {% endif %} {% endfor %}{% 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 | {% set coutTotalComposantHt = null %} {% set coutTotalComposant = null %} {% for composantResultat in composantHierarchie[key] %} {% set coutComposantHt = resultats[composantResultat.id].getResultatTotalHT() %} {% set coutComposant = resultats[composantResultat.id].getResultatTotal() %} | {% if coutComposantHt is not null %}{{ coutComposantHt }}€ {% endif %} | {% 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 %}{% 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 %} |