|
|
@@ -0,0 +1,45 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ {% load filtros_de_entorno %}
|
|
|
+ <style>
|
|
|
+ body { font-family: sans-serif; font-size: 12px; }
|
|
|
+ table { width: 100%; border-collapse: collapse; margin-top: 20px; }
|
|
|
+ th, td { border: 1px solid #ccc; padding: 4px; text-align: right; }
|
|
|
+ th { background: #f0f0f0; }
|
|
|
+ td.text-left, th.text-left { text-align: left; }
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+ <h2 style="color: chocolate;">Informe de categoría: {{ categoria.nombre }}</h2>
|
|
|
+ <h4>
|
|
|
+ Periodo del {{ fecha_inicio }} hasta {{ fecha_fin }} - Saldo final: {{ saldo_final|formato_numero:2 }} €
|
|
|
+ </h4>
|
|
|
+ <table>
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th class="text-left">Fecha</th>
|
|
|
+ <th class="text-left">Descripción</th>
|
|
|
+ <th class="text-left">Origen</th>
|
|
|
+ <th class="text-left">Destino</th>
|
|
|
+ <th>Monto (€)</th>
|
|
|
+ <th>Saldo después (€)</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ {% for item in historial %}
|
|
|
+ <tr>
|
|
|
+ <td class="text-left">{{ item.fecha|date:"Y-m-d H:i" }}</td>
|
|
|
+ <td class="text-left">{{ item.descripcion }}</td>
|
|
|
+ <td class="text-left">{{ item.desde }}</td>
|
|
|
+ <td class="text-left">{{ item.hasta }}</td>
|
|
|
+ <td style="color: green" >{{ item.monto|formato_numero:2 }}</td>
|
|
|
+ {% endif %}
|
|
|
+ <td>{{ item.saldo_despues|formato_numero:2 }}</td>
|
|
|
+ </tr>
|
|
|
+ {% endfor %}
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+</body>
|
|
|
+</html>
|