{% extends "mag/base_mag_ecom.html" %} {% load static %} {% block title %}AUTO-PIECE — Archives{% endblock title %} {% block page %}Archives{% endblock page %} {% block breadcrumb %} {% endblock breadcrumb %} {% block extra_head %} {% endblock extra_head %} {% block page_action_buttons %} Stock actif {% endblock page_action_buttons %} {% block page_action_suffix %} {% if not can_choose_localite and localite_active %} {{ localite_active.nom }} {% endif %} {% endblock page_action_suffix %} {% block main_content %}
{% include "mag/partials/_periode_filter_modal.html" %}
{{ count_archive }} pièce(s) archivée(s). Utilisez Restaurer pour les réafficher dans le stock actif.

Pièces archivées

{% include "mag/partials/_alpine_table_toolbar.html" with search_placeholder="Rechercher pièce, motif, auteur…" %}
{% for d in piece_queryset %} {% empty %} {% endfor %}
N°# N°Pièce Designation Categorie Prix vente Prix vente local Quantite stock Type archive Archivé par Localité Date archive Motif Action Restaurer
{{ forloop.counter }} {{ d.numero_piece }} {{ d.designation }} {{ d.libelle_classification }} {{ d.prix_unitaire }} F {% if d.prix_unitaire_local_valeur is not None %} {{ d.prix_unitaire_local_valeur }} F {% else %} — {% endif %} {{ d.quantite_disponible|default:0 }} {% if d.active_sortie is False %} Catalogue {% elif not d.active_sortie_local|default:True %} Localité {% else %} — {% endif %} {% if d.active_sortie is False %} {% if d.archive_par %}{{ d.archive_par.username }}{% else %}—{% endif %} {% elif d.archive_par_local_username %} {{ d.archive_par_local_username }} {% else %} — {% endif %} {% if d.active_sortie is False %} Toutes {% elif d.archive_local_nom %} {{ d.archive_local_nom }} {% elif localite_active %} {{ localite_active.nom }} {% else %} — {% endif %} {% if d.active_sortie is False and d.archive_le %} {{ d.archive_le|date:"d/m/Y H:i" }} {% elif d.archive_le_local %} {{ d.archive_le_local|date:"d/m/Y H:i" }} {% else %} — {% endif %} {% if d.active_sortie is False and d.archive_motif %} {{ d.archive_motif|truncatechars:60 }} {% elif d.archive_motif_local %} {{ d.archive_motif_local|truncatechars:60 }} {% else %} — {% endif %} {% if d.active_sortie is False %} Restaurer {% elif not d.active_sortie_local|default:True %} Restaurer {% else %} — {% endif %}

Aucune pièce archivée pour les critères sélectionnés.

Voir le stock actif
{% if piece_queryset %} {% include "mag/partials/_table_pager.html" %} {% endif %}
{% endblock main_content %} {% block extra_js %} {% include "mag/partials/_periode_filter_js.html" %} {% endblock extra_js %}