{% if not opportunites|length %} {% else %} {% for opportunity in opportunites %}
{% for tracability in opportunity.tracabilityCRMs %} {% if app.request.get('search_date_debut') != '' and app.request.get('search_date_fin') != '' and ((tracability.dateAction|date('Y-m-d')) >= app.request.get('search_date_debut')) and ((tracability.dateAction|date('Y-m-d')) <= app.request.get('search_date_fin')) %} {% set updates = updates|merge([{ objet : tracability.statutAction, date : tracability.dateAction|date('Y-m-d H:i'), user : tracability.userTracabilityEmetteur.fullName }]) %} {% elseif app.request.get('search_date_debut') == '' and app.request.get('search_date_fin') == '' %} {% set updates = updates|merge([{ objet : tracability.statutAction, date : tracability.dateAction|date('Y-m-d H:i'), user : tracability.userTracabilityEmetteur.fullName }]) %} {% endif %} {% endfor %} {% for history in opportunity.historyMontantCRMs %} {% if app.request.get('search_date_debut') != '' and app.request.get('search_date_fin') != '' and ((history.dateModification|date('Y-m-d')) >= app.request.get('search_date_debut')) and ((history.dateModification|date('Y-m-d')) <= app.request.get('search_date_fin')) %} {% set updates = updates|merge([{ objet : history.typeAction, date : history.dateModification|date('Y-m-d H:i'), user : history.userCreator.fullName }]) %} {% elseif app.request.get('search_date_debut') == '' and app.request.get('search_date_fin') == '' %} {% set updates = updates|merge([{ objet : history.typeAction, date : history.dateModification|date('Y-m-d H:i'), user : history.userCreator.fullName }]) %} {% endif %} {% endfor %} {% for relance in opportunity.relances %} {% if app.request.get('search_date_debut') != '' and app.request.get('search_date_fin') != '' and ((relance.dateRelance|date('Y-m-d')) >= app.request.get('search_date_debut')) and ((relance.dateRelance|date('Y-m-d')) <= app.request.get('search_date_fin')) %} {% set updates = updates|merge([{ objet : relance.relanceData, date : relance.dateRelance|date('Y-m-d H:i'), user : relance.userEmetteur ? relance.userEmetteur.fullName : 'Relance Automatique' }]) %} {% elseif app.request.get('search_date_debut') == '' and app.request.get('search_date_fin') == '' %} {% set updates = updates|merge([{ objet : relance.relanceData, date : relance.dateRelance|date('Y-m-d H:i'), user : relance.userEmetteur ? relance.userEmetteur.fullName : 'Relance Automatique' }]) %} {% endif %} {% endfor %}

{{ opportunity.title }}

{% if app.user and is_granted('ROLE_TRAITER_OPPORTUNITY_CRM') and opportunity.id in is_next_level and app.request.get('nature') == 'mine' %} {% elseif app.user and is_granted('ROLE_TRAITER_OPPORTUNITY_CRM') and opportunity.id in is_finish and app.request.get('nature') == 'mine' %} {% endif %}
{% include('CRM/OpportunityCRM/tabs/tab_action.html.twig') %}
{{ opportunity.statutValue }}

  • Type : {{ opportunity.typeValue }} {% if opportunity.type == 'T02' and opportunity.typeSoumission %}- {{ opportunity.typeSoumissionAbreviation }}{% endif %}
  • Responsable commercial : {{ opportunity.responsableCommerciale.fullName }}
  • Date de création : {{ opportunity.dateCreation|date('Y-m-d') }}
  • {% if opportunity.type == 'T02' and opportunity.dateSoumission %}
  • Date de soumission : {{ opportunity.dateSoumission|date('Y-m-d') }}
  • {% endif %}
  • Client : {{ opportunity.client.abreviation }} - {{ opportunity.client.paysName }}
  • {% if opportunity.projet|length %}
  • Projet(s) : {% for projet in opportunity.projet %} {% if cpt > 0 %} - {% endif %}{{ projet.intitule }} {% set cpt = cpt + 1 %} {% endfor %}
  • {% endif %}

Montants :

  • Budget : {{ opportunity.budget|number_format(0,'',' ') }} {{ opportunity.unityAbreviation }}
  • {% if opportunity.type == 'T02' %}
  • Montant caution : {{ opportunity.montantCaution|number_format(0,'',' ') }} {{ opportunity.unityAbreviation }}
  • {% endif %}
  • Montant d'offre : {{ opportunity.montantOffre|number_format(0,'',' ') }} {{ opportunity.unityAbreviation }}
  • Montant contractualisé : {{ opportunity.montantContractualise|number_format(0,'',' ') }} {{ opportunity.unityAbreviation }}
  • Montant part SFM : {{ opportunity.montantPartSFM|number_format(0,'',' ') }} {{ opportunity.unityAbreviation }}

Dernière mise à jour :

    {% for update in updates|sort((a, b) => b.date <=> a.date) if nb < 5 %} {% set nb = nb + 1 %}
  • {{ update.user }} : {{ update.objet }} ({{ update.date }})
  • {% if nb == 5 %}
  • ...
  • {% endif %} {% endfor %}
{% endfor %} {% endif %}