{% extends "base.html" %} {% block title %}Historique de {{ meter.name }} — GMAO{% endblock %} {% block content %}

## Historique : {{ meter.name }}

Retour à l'équipement

Date | Valeur | Consommation | Commentaire | Utilisateur
--- | --- | --- | --- | ---
{% set prev_reading = None %} {% for r in readings %}
{{ r.date|datetime_fmt }} | {{ r.value }} {{ meter.unit }} | {% if prev_reading %} {{ (r.value - prev_reading.value)|abs }} {{ meter.unit }} {% else %} Dernier relevé {% endif %} | {{ r.comment or '—' }} | {{ r.user.full_name }}
{% set prev_reading = r %} {% endfor %}

{% endblock %}