<commit_before>{% extends "mgateTresoBundle::layout.html.twig" %}

{% block title %}
	Accueil - {{ parent() }}
{% endblock %}

{% block content_bundle %}


        <h2>URSSAF</h2>

<form method="post" {{ form_enctype(form) }}>
    {% form_theme form 'mgateSuiviBundle:Form:fields.html.twig' %}
	{{ form_label(form.date) }} {{ form_widget(form.date) }}
	{{ form_widget(form) }}
	<br>
    <input type="submit" value="Chercher" class="btn"/>
</form>


<br>
<table class="table table-striped" id="myTable">
      <thead>
          <tr>
              <th>
                  <div>Nom de l'étude</div>
                  <div>Référence</div>
              </th>
              <th>
                  <div>Client</div>
                  <div>Suiveur</div>
              </th>
              <th>
                  <div>Date de Lancement de l'étude</div>
                  <div>Date de Fin de l'étude</div>
              </th>
              <th>
                   Nom Prénom
              </th>
              <th>
                   <div>Nombre de JEH de l'étude</div>
              </th>
              <th>
                   <div>Nombre de JEH pour l'étudiant</div>
              </th>
            </tr>
 	 </thead>
 	 <tbody>

        {% for rm in RMs %}
    <tr>
    <td><div>{{ rm.etude.nom }}</div><div> <a href="{{ path('mgateSuivi_etude_voir', {'numero': rm.etude.numero}) }}"> {{ rm.etude.reference }}</a></div></td>
    <td>{{ rm.etude.prospect.nom }}
        <br /><br />
     {{rm.etude.suiveur.prenomNom| default("Pas de suiveur!")}}</td>
    <td>
            {% if getDateLancement(rm.etude) != NULL %}<div>{{ getDateLancement(rm.etude)|date("d/m/Y") }}</div>{% endif %}
            {% if rm.etude.dateFin != NULL %}<div>{{ rm.etude.dateFin|date("d/m/Y") }}</div>{% endif %}
        </td>
            <td>
                {{ rm.intervenant.personne.prenomNom | default("Intervenant non choisi") }} {{ rm.intervenant.nom | default("") }}
            </td>
            <td>
                <div>{{ rm.etude.montantHT |default('') }} €</div>
                <div>{{ rm.etudenbrJEH |default('') }} JEH</div>
            </td>
           <td>
               {% set totalJEH = 0 %}
               {% set totalRem = 0 %}
               {% for repartition in rm.repartitionsJEH if repartition %}
               {% set totalJEH = totalJEH + repartition.nbrJEH %}
               {% set totalRem = totalRem + repartition.nbrJEH * repartition.prixJEH * (1-rm.pourcentageJunior/100) %}
                <div>Repartition n°{{ loop.index }} : {{ repartition.nbrJEH }} * {{ repartition.prixJEH * (1-rm.pourcentageJunior/100)}} = {{ repartition.prixJEH * repartition.nbrJEH*(1-rm.pourcentageJunior/100) }} €</div>
                {% endfor %}
                <div>Total : {{ totalJEH }} JEH - {{ totalRem }} €</div>
            </td>
        </tr>
        {% endfor %}
 	 </tbody>
</table>


{% endblock %}

{% block javascript %}
    {{ parent() }}
    {{ form_javascript(form) }}
{% endblock %}
<commit_msg>Remove undefined getLancementDate from Urssaf view.<commit_after>{% extends "mgateTresoBundle::layout.html.twig" %}

{% block title %}
	Accueil - {{ parent() }}
{% endblock %}

{% block content_bundle %}


        <h2>URSSAF</h2>

<form method="post" {{ form_enctype(form) }}>
    {% form_theme form 'mgateSuiviBundle:Form:fields.html.twig' %}
	{{ form_label(form.date) }} {{ form_widget(form.date) }}
	{{ form_widget(form) }}
	<br>
    <input type="submit" value="Chercher" class="btn"/>
</form>


<br>
<table class="table table-striped" id="myTable">
      <thead>
          <tr>
              <th>
                  <div>Nom de l'étude</div>
                  <div>Référence</div>
              </th>
              <th>
                  <div>Client</div>
                  <div>Suiveur</div>
              </th>
              <th>
                  <div>Date de Lancement de l'étude</div>
                  <div>Date de Fin de l'étude</div>
              </th>
              <th>
                   Nom Prénom
              </th>
              <th>
                   <div>Nombre de JEH de l'étude</div>
              </th>
              <th>
                   <div>Nombre de JEH pour l'étudiant</div>
              </th>
            </tr>
 	 </thead>
 	 <tbody>

        {% for rm in RMs %}
    <tr>
    <td><div>{{ rm.etude.nom }}</div><div> <a href="{{ path('mgateSuivi_etude_voir', {'numero': rm.etude.numero}) }}"> {{ rm.etude.reference }}</a></div></td>
    <td>{{ rm.etude.prospect.nom }}
        <br /><br />
     {{rm.etude.suiveur.prenomNom| default("Pas de suiveur!")}}</td>
    <td>
            {% if rm.etude.dateLancement != NULL %}<div>{{ rm.etude.dateLancement |date("d/m/Y") }}</div>{% endif %}
            {% if rm.etude.dateFin != NULL %}<div>{{ rm.etude.dateFin|date("d/m/Y") }}</div>{% endif %}
        </td>
            <td>
                {{ rm.intervenant.personne.prenomNom | default("Intervenant non choisi") }} {{ rm.intervenant.nom | default("") }}
            </td>
            <td>
                <div>{{ rm.etude.montantHT |default('') }} €</div>
                <div>{{ rm.etudenbrJEH |default('') }} JEH</div>
            </td>
           <td>
               {% set totalJEH = 0 %}
               {% set totalRem = 0 %}
               {% for repartition in rm.repartitionsJEH if repartition %}
               {% set totalJEH = totalJEH + repartition.nbrJEH %}
               {% set totalRem = totalRem + repartition.nbrJEH * repartition.prixJEH * (1-rm.pourcentageJunior/100) %}
                <div>Repartition n°{{ loop.index }} : {{ repartition.nbrJEH }} * {{ repartition.prixJEH * (1-rm.pourcentageJunior/100)}} = {{ repartition.prixJEH * repartition.nbrJEH*(1-rm.pourcentageJunior/100) }} €</div>
                {% endfor %}
                <div>Total : {{ totalJEH }} JEH - {{ totalRem }} €</div>
            </td>
        </tr>
        {% endfor %}
 	 </tbody>
</table>


{% endblock %}

{% block javascript %}
    {{ parent() }}
    {{ form_javascript(form) }}
{% endblock %}

{'fraction_non_alphanumeric': 0.1845821565044027, 'fraction_numerical': 0.005316497757102509, 'mean_word_length': 1.7166064981949458, 'pattern_counts': {'":': 0, '<': 157, '<?xml version=': 0, '>': 157, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6270471', 'n_tokens_mistral': 2255, 'n_tokens_neox': 2029, 'n_words': 370}