{% extends 'perfect/baslog.html' %} {% load static %} {% block title %}Liste des pièces{% endblock title %} {% block page %}Pièces{% endblock page %} {% block main_content %} {% block formfade %} {% endblock formfade %}
TYPE PIECE PAR CATEGORIE
ALTO
{{ nbtypealto }}
DZIRE
{{ nbtypedzir }}
SWIFT
{{ nbtypespre }}
QUANTITE DE PIECE
{% if top_pieces %} {% for t in top_pieces %}
{{ t.piece__designation }}
{{ t.total_commandes }} - {{ t.total_somme }}
{% endfor %} {% endif %}
PIECE EN ALERTE
Designation
Qte
{% if liste_piece_alerte %} {% for a in liste_piece_alerte %}
{{a.designation}}
{{ a.quantite }}
{% endfor %} {% endif %}
ALTO {{qtalto}}
DZIRE {{qtdzir}}
SWIFT {{qtspre}}
TOTAL {{qtepiece}}
COUT {{libelle_mois_en_cours}}: {{inventaire}} - {{vente_month}}
{% block plus %} {% endblock plus %} {% block calendar %} {% endblock calendar %}
{% for p in listpiece %} {% endfor %}
N°PIECE LIBELLE VEHICULE QUANTITE ALERTE INDICATEUR PRIX ACHAT PRIX UNITAIRE FOURNISSEUR ACTION
{{p.numero_piece}} {{p.designation}} {{p.type_voiture.type_voiture}} {{p.quantite}} {{p.seuil}} {% if p.quantite > p.seuil %} bon {% elif p.quantite == p.seuil %} virgilance {% elif p.quantite <= p.seuil and p.quantite > 0 %} attention {% elif p.quantite == 0 %} RUPTURE {% endif %} {{p.prix_achat}} {{p.prix_unitaire}} {{p.fournisseur}}
{% endblock main_content %}