{% extends "mag/base_mag_ecom.html" %} {% load static %} {% block title %}Demandes de transfert{% endblock %} {% block page %}Demandes entre agences{% endblock %} {% block extra_head %} {% endblock extra_head %} {% block page_action_buttons %} {% if is_chef_agence and localite_user %} {% endif %} {% endblock page_action_buttons %} {% block main_content %} {% include "mag/partials/_periode_filter_modal.html" %} {% load custom_filters %}

Demandes de transfert

{% include "mag/partials/_alpine_table_toolbar.html" with search_placeholder="Rechercher n° demande, agence, statut…" %}
{% for d in demandes %} {% empty %} {% endfor %}
N° demande Demandeur → Donneur Lignes Statut Bon donneur Bon livraison Date Actions
{{ d.numero_demande }} {{ d.local_demandeur.nom }} → {{ d.local_donneur.nom }} {{ d.nb_lignes }} pièce(s) {{ d|statut_demande_affichage:request.user }} {% if d.numero_bon_donneur %}{{ d.numero_bon_donneur }}{% else %}—{% endif %} {% if d.bon_livraison %} {{ d.bon_livraison.numero_bon_livraison }} {% else %} — {% endif %} {{ d.date_demande|date:"d/m/Y H:i" }} {% if d.statut == 'en_attente' and localite_user and d.local_demandeur_id == localite_user.pk %}
{% csrf_token %}
{% endif %} {% if d.statut == 'en_attente' and localite_user and d.local_donneur_id == localite_user.pk %}
{% csrf_token %}
{% endif %} {% if d.statut == 'validee' and localite_user and d.local_demandeur_id == localite_user.pk and d.bon_livraison and d.bon_livraison.statut == 'livre' %} {% endif %}
Aucune demande sur la période.
{% include "mag/partials/_table_pager.html" %}
{% if is_chef_agence and localite_user %} {% endif %} {% endblock %} {% block extra_js %} {% include "mag/partials/_periode_filter_js.html" %} {% endblock extra_js %}