{% extends "mag/base_mag_ecom.html" %} {% load static %} {% block title %}AUTO-PIECE{% endblock title %} {% block breadcrumb %} {% endblock breadcrumb %} {% block extra_head %} {% endblock extra_head %} {% block page_action_buttons %} {% if categorie %} Modèle Excel
{% csrf_token %}
{% endif %} {% endblock page_action_buttons %} {% block main_content %}

Liste des pièces de {{ categorie.categorie }}

{% if sous_categorie_active %}

Filtre : {{ sous_categorie_active.nom }}

{% endif %}
{% if categorie.image %} {% endif %} {% if sous_categories %} {% endif %}
{% include "mag/partials/_alpine_table_toolbar.html" %}
{% if pieces %} {% for d in pieces %} {% endfor %} {% endif %}
N°# N°Pièce Designation Sous-catégorie Prix Achat Prix Vente Quantite stock seuil Emplacement Auteur Date Action Sortie
N°# N°Pièce Designation Sous-catégorie Prix Achat Prix Vente Quantite stock Seuil Emplacement Auteur Date Action Sortie
{{forloop.counter}} {{d.numero_piece}} {{d.designation}} {% if d.sous_categorie %}{{ d.sous_categorie.nom }}{% else %}Non classée{% endif %} {{d.prix_achat}} {{d.prix_unitaire}} {{d.seuil}} {{d.emplacement}} {{d.utilisateur.username}} {{d.date_creation|date:"d-m-y"}} - - - {% if peut_toggle_sortie_catalogue %} {% elif peut_toggle_sortie_local %} {% else %} — {% endif %}
{% if pieces %} {% for d in pieces %} {% include "mag/partials/entre_stock.html" with piece=d entre_stock_form=entre_stock_form %} {% include "mag/partials/_edit_piece.html" with piece=d edit_piece_form=edit_piece_form fournisseurs=fournisseurs categories=categories %} {% endfor %} {% endif %} {% include "mag/partials/_modal_archive_motif.html" %} {% include "mag/partials/_archive_toggle_js.html" %} {% include "mag/partials/_sous_categorie_cascade.html" %} {% endblock main_content %}