{% extends 'base.html' %} {% block title %}Dashboard{% endblock %} {% block content %}
CA ce mois
{{ stats.month_revenue or 0 }} €
CA total
{{ stats.total_revenue or 0 }} €
Commandes
{{ stats.total_jobs or 0 }}
Marge brute moy.
{{ stats.avg_margin or 0 }} %
{% if low_stock %}
Stock bas ou rupture : {% for m in low_stock %} {{ m.name }} ({{ m.stock_g|round(0)|int }} g){% if not loop.last %}, {% endif %} {% endfor %} — Gérer les stocks
{% endif %}
Dernières commandes Tout voir
{% if jobs %} {% for j in jobs %} {% endfor %}
NomClientMatièreFichier PoidsDuréePrix final
{{ j.name }} {{ j.client_name or '—' }} {% if j.material_name %} {{ j.material_name }} {% else %}—{% endif %} {{ j.source_file or '—' }} {{ j.weight_g }} g {{ j.print_time_s | fmt_time }} {{ j.final_price }} €
{% else %}

Aucune commande pour l'instant.

Créer le premier calcul
{% endif %}
{% endblock %}