54 lines
1.7 KiB
HTML
54 lines
1.7 KiB
HTML
{% 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 %}
|