{% extends 'admin/layout.html.twig' %} {% block title %}{{ prospection.venueEntity ? prospection.venueEntity.name : prospection.venue }} — Prospection WTL{% endblock %} {% block admin_body %} {% set venue = prospection.venueEntity %} {% set contact = prospection.targetContact ?: (venue ? venue.primaryContact : null) %}

{{ venue ? venue.name : prospection.venue }}

{% if prospection.status %} {{ prospection.status.name }} {% endif %}

{{ venue ? venue.city : prospection.city }} {% if venue and venue.department %} · {{ venue.department }} {% endif %}

Retour Nouvelle prospection Modifier {% if can_permission('PROSPECTION',3) %}
{% endif %}
{% if concertDate %}
Date de concert liée
{{ concertDate.eventDate|date('d/m/Y') }}{% if concertDate.startTime %} · {{ concertDate.startTime|date('H:i') }}{% endif %}
{{ concertDate.visibility == 'public' ? 'Publiée sur le site' : (concertDate.visibility == 'scheduled' ? 'Publication programmée' : 'Non publiée') }}{% if concertDate.status == 'cancelled' %} · Annulée{% endif %}
Gérer la date
{% endif %} {% if preparationChecklist %}
Préparation administrative
Contrôle automatique des éléments à préparer avant la date.
{{ preparationChecklist.missing == 0 ? 'Complet' : preparationChecklist.missing ~ ' élément(s) manquant(s)' }}
{% for item in preparationChecklist.items %}
{{ item.label }}
{{ item.detail }}
{% endfor %}
{% endif %} {% if prospection.nextAction %}
Prochaine étape
{{ prospection.nextAction }}
{% if prospection.nextActionDate %}
{{ prospection.nextActionDate|date('d/m/Y') }} {% if prospection.nextActionDate < today %} · en retard{% endif %}
{% endif %}
{% endif %}

Actions rapides

L'utilisateur connecté est mémorisé automatiquement pour chaque action.

Lieu & contact
Lieu
{{ venue ? venue.name : prospection.venue }}
{{ venue ? venue.city : prospection.city }}
{% if venue and venue.approximateBudget %}
Budget indicatif : {{ venue.approximateBudget|number_format(2,',',' ') }} € HT
{% endif %} {% if prospection.proposedFee %}
Tarif proposé : {{ prospection.proposedFee|number_format(2,',',' ') }} € HT{% if prospection.hatPlanned %} Chapeau prévu{% endif %}
{% endif %}
Contact ciblé
{% if contact %} {{ contact.name }} {% if contact.primaryContact %} Principal {% endif %}
{{ contact.contactType ? contact.contactType.name : '' }}
{{ contact.email ?: '' }} {{ contact.phone ?: '' }}
{% else %}—{% endif %}
{% if venue %}
{% endif %}
Suivi et responsables
Étape Date Réalisée par
Création {{ prospection.createdAt|date('d/m/Y') }} {{ prospection.createdBy ? prospection.createdBy.displayName : '—' }}
Premier contact {{ prospection.firstContactDate ? prospection.firstContactDate|date('d/m/Y') : '—' }} {{ prospection.firstContactBy ? prospection.firstContactBy.displayName : '—' }}
Relance 1
prévue {{ followUp1Due ? followUp1Due|date('d/m/Y') : '—' }}
{{ prospection.followUp1SentDate ? prospection.followUp1SentDate|date('d/m/Y') : '—' }} {{ prospection.followUp1By ? prospection.followUp1By.displayName : '—' }}
Relance 2
prévue {{ followUp2Due ? followUp2Due|date('d/m/Y') : '—' }}
{{ prospection.followUp2SentDate ? prospection.followUp2SentDate|date('d/m/Y') : '—' }} {{ prospection.followUp2By ? prospection.followUp2By.displayName : '—' }}
Proposition {{ prospection.proposalSentDate ? prospection.proposalSentDate|date('d/m/Y') : '—' }} {{ prospection.proposalBy ? prospection.proposalBy.displayName : '—' }}
Décision {{ prospection.confirmedDate ? 'Validée le ' ~ prospection.confirmedDate|date('d/m/Y') : (prospection.refusedDate ? 'Refusée le ' ~ prospection.refusedDate|date('d/m/Y') : '—') }} {{ prospection.decisionBy ? prospection.decisionBy.displayName : '—' }}
Réalisation {{ prospection.performedDate ? prospection.performedDate|date('d/m/Y') : '—' }} {{ prospection.performedBy ? prospection.performedBy.displayName : '—' }}
Documents
Les conventions sont toujours rattachées à une version précise du devis.
{% if can_permission('QUOTE',2) %}{% endif %}
{% set quotes = documents|filter(d => d.type == 'quote') %} {% if quotes %}
{% for quote in quotes %} {% set linkedConvention = (conventions|filter(c => c.sourceQuote and c.sourceQuote.id == quote.id)|first) ?: null %}

Devis {{ quote.number }}
{{ quote.issueDate|date('d/m/Y') }}
Voir
{% set invoices = can_permission('INVOICE') ? (documents|filter(d => d.type == 'invoice' and d.sourceDocument and d.sourceDocument.id == quote.id)) : [] %} {% for invoice in invoices %}
Facture {{ invoice.number }}
Issue du devis {{ quote.number }}
Voir
{% endfor %} {% if linkedConvention %}
Convention
Basée sur le devis {{ quote.number }}
Voir{% if can_permission('CONVENTION',3) %}
{% endif %}
{% else %}
Aucune convention pour cette version.
{% endif %}
{% endfor %}
{% else %}
Aucun devis. Crée d’abord un devis pour pouvoir générer une convention.
{% endif %} {% set legacyConventions = conventions|filter(c => not c.sourceQuote) %} {% if legacyConventions %}
Conventions historiques non liées à un devis
{% for c in legacyConventions %}{{ c.title }}{% endfor %}
{% endif %}
Documents techniques
Fiches génériques ou spécifiques à cette représentation.
{% if can_permission('PROSPECTION', 2) or can_permission('TECHNICAL_SHEET', 2) %}{% endif %}
{% if technicalSheets %}
{% for sheet in technicalSheets %}
Fiche technique V{{ sheet.version }}
{{ sheet.sourceType == 'template' ? 'Modèle associé sans régénération' : (sheet.sourceType == 'template_customized' ? 'Modèle personnalisé' : 'Fiche spécifique') }} · {{ sheet.createdAt|date('d/m/Y H:i') }}
{{ sheet.state }} {% if can_permission('PROSPECTION', 2) or can_permission('TECHNICAL_SHEET', 2) %} {% if sheet.state == 'generated' %}
{% endif %} {% if sheet.state != 'validated' %}
{% endif %} {% endif %} {% if sheet.state == 'generated' and can_permission('TECHNICAL_SHEET', 3) %}
{% endif %}
{% endfor %}
{% else %}
Aucune fiche technique associée à cette prospection.
{% endif %}
Historique
{% for event in events %}
{{ event.label }} {{ event.eventDate|date('d/m/Y') }}
{{ event.actor ? event.actor.displayName : 'Utilisateur non renseigné' }}
{% if event.notes %}
{{ event.notes }}
{% endif %}
{% else %}
Aucun événement.
{% endfor %}
{% if mailLogs %}
Mails envoyés
{% for mail in mailLogs|slice(0,5) %}
{{ mail.subject }}{{ mail.sentAt|date('d/m/Y H:i') }}
À {{ mail.recipient }}{% if mail.template %} · {{ mail.template.name }}{% endif %}
{% endfor %}{% endif %}
{% if venue %} {% endif %} {% include 'admin/prospection/_technical_sheet_modal.html.twig' %} {% include 'admin/prospection/_quote_modal.html.twig' with {prospection:prospection, quoteLineSettings:quoteLineSettings} %} {% endblock %} {% block javascripts %}{{ parent() }} {% endblock %}