{% extends 'layout/app.html.twig' %} {% block title %}{{ sourcingRequest.title }} - Demandes - Portail{% endblock %} {% block breadcrumb %}Demandes / {{ sourcingRequest.externalReference }}{% endblock %} {% block app_content %} {% if app.environment in ['dev', 'test'] and sourcingRequest.open %}Préparer une consultation fournisseur{% endif %}
Référence {{ sourcingRequest.externalReference }}
importée le {{ sourcingRequest.importedAt|date('d/m/Y H:i') }} par {{ sourcingRequest.importedBy.firstName }} {{ sourcingRequest.importedBy.lastName }} {% if sourcingRequest.closedAt %} · clôturée le {{ sourcingRequest.closedAt|date('d/m/Y H:i') }}{% if sourcingRequest.closedBy %} par {{ sourcingRequest.closedBy.firstName }} {{ sourcingRequest.closedBy.lastName }}{% endif %}{% endif %}
Dernière version de chaque sourceur. Aucun d'eux ne voit les autres.
| {% for assignment in compared %} | {{ assignment.sourcer.name }}{% if not assignment.active %} (retiré){% endif %} | {% endfor %}
|---|---|
| État | {% for assignment in compared %}{% if assignment.proposal %}{% include 'proposal/_state.html.twig' with { state: assignment.proposal.state, audience: 'team' } only %} {% else %}Aucune proposition{% endif %} | {% endfor %}
| Version | {% for assignment in compared %} {% set version = assignment.proposal ? assignment.proposal.latestVersion : null %}{% if version %}Version {{ version.number }}{% else %}—{% endif %} | {% endfor %}
| {{ label }} | {% for assignment in compared %} {% set version = assignment.proposal ? assignment.proposal.latestVersion : null %}{% if not version %}— {% else %} {% set raw = version.values[field] %} {{ proposal_value(field, raw) }}{% if field == 'unitPrice' and raw is not null %} {{ version.currency ?? '(devise à confirmer)' }}{% endif %} {% endif %} | {% endfor %}
| {% for assignment in compared %} | {% if assignment.proposal %}Ouvrir{% endif %} | {% endfor %}
Coche ceux qui doivent voir cette demande. Aucun ne voit le nom des autres. Adresser une demande n'est ni une commande ni un engagement.
{% else %} {% set assigned = sourcingRequest.activeAssignments %}{% if assigned is empty %}Aucun sourceur n'était assigné.{% else %}Étaient assignés : {{ assigned|map(a => a.sourcer.name)|join(', ') }}.{% endif %}
{% endif %}