{% extends "mag/base_mag_ecom.html" %} {% load static %} {% load custom_filters %} {% block title %}AUTO-PIECE{% endblock title %} {% block page %}Historique commandes{% endblock page %} {% block extra_head %} {% endblock extra_head %} {% block main_content %}
| N° | ID | Numéro | Montant net | Remise | Total | Payé | Montant payé | Montant reste | Type action | Reçu | Utilisateur | Date de l'action | Actions | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ forloop.counter }} | {{ item.id }} | {{ item.numero_commande }} | {{ item.total_sans_remise }} | {{ item.remise }} | {{ item.total }} | {% if item.paye %}✅{% else %}❌{% endif %} | {{ item.montant_paye }} | {{ item.montant_reste }} | {% if item.history_type == '+' %}Création {% elif item.history_type == '~' %}Modification {% elif item.history_type == '-' %}Suppression {% else %}—{% endif %} | {% if ticket %} {% if ticket.fichier_pdf %} {{ ticket.numero }} {% else %} {{ ticket.numero }} {% endif %} {% else %} — {% endif %} | {{ item.history_user.username|default:item.utilisateur.username|default:"—" }} | {{ item.history_date|date:"d/m/Y H:i" }} | ||
| Aucun historique pour la période sélectionnée. | ||||||||||||||