| 1234567891011121314151617181920212223242526272829303132333435363738 |
- {% load range_filters %}
- <!DOCTYPE html>
- <html lang="es">
- <head>
- <meta charset="UTF-8">
- <title>Resumen de Saldos Mensuales</title>
- <style>
- table { border-collapse: collapse; width: 100%; }
- th, td { border: 1px solid #ccc; padding: 8px; text-align: right; }
- th:first-child, td:first-child { text-align: left; }
- </style>
- </head>
- <body>
- <h1>Resumen de Saldos Mensuales</h1>
- <table>
- <thead>
- <tr>
- <th>Cuenta</th>
- {% for anio, mes in meses %}
- <th>{{ mes }}/{{ anio }}</th>
- {% endfor %}
- </tr>
- </thead>
- <tbody>
- {% for cuenta in cuentas %}
- <tr>
- <td>{{ cuenta.nombre }}</td>
- {% for anio, mes in meses %}
- {% get_saldo saldos_mensuales cuenta.id anio mes as saldo %}
- <td class="text-end">{{ saldo|floatformat:2 }} €</td>
- {% endfor %}
- </tr>
- {% endfor %}
- </tbody>
- </table>
- </body>
- </html>
|