iteracion 2

This commit is contained in:
Nachou-u
2026-09-07 18:44:32 -03:00
parent a103a47ae6
commit 09a3f6fb37
93 changed files with 7394 additions and 349 deletions
@@ -0,0 +1,53 @@
{% extends 'base.html' %}
{% load humanize %}
{% block content %}
<section class="page-view active">
<div class="view-header">
<div class="view-title">
<h2><i data-lucide="file-spreadsheets" style="color:var(--efintel-blue);"></i> Informes y Rendiciones de Gastos</h2>
<p>Agrupación de boletas/facturas por comisiones de servicio, viajes a faena y cajas chicas.</p>
</div>
<div>
<a href="{% url 'expense_report_create' %}" class="btn-primary" style="text-decoration:none;">
<i data-lucide="plus-circle" style="width:16px;"></i> + Nueva Rendición
</a>
</div>
</div>
<div class="data-card">
<table class="data-table">
<thead>
<tr>
<th>Código</th>
<th>Título / Propósito</th>
<th>Responsable</th>
<th>Proyecto</th>
<th>Fechas</th>
<th>Monto Total (CLP)</th>
<th>Estado</th>
</tr>
</thead>
<tbody>
{% for rep in reports %}
<tr>
<td><strong>{{ rep.report_code }}</strong></td>
<td>{{ rep.title }}</td>
<td>{{ rep.user.username }}</td>
<td>{{ rep.project.name }}</td>
<td>{{ rep.start_date }} al {{ rep.end_date }}</td>
<td>${{ rep.total_amount|floatformat:"0"|intcomma }} CLP</td>
<td><span class="badge badge-blue">{{ rep.get_status_display }}</span></td>
</tr>
{% empty %}
<tr>
<td colspan="7" style="text-align:center; padding:2rem; color:var(--text-secondary);">
No hay informes de rendición registrados. <a href="{% url 'expense_report_create' %}">Crear el primero</a>.
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</section>
{% endblock %}