Files
erp-efintel-2026-portainer/templates/procurement/po_list.html
T
2026-09-07 18:44:32 -03:00

50 lines
1.5 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="package" style="color:var(--efintel-blue);"></i> Órdenes de Compra (OC)</h2>
<p>Emisión, envío a proveedores, recepciones conformes y conciliación 3-Way Match.</p>
</div>
<div>
<a href="{% url 'procurement:purchase_order_create' %}" class="btn-primary" style="text-decoration:none;">
<i data-lucide="plus-circle" style="width:16px;"></i> + Generar OC
</a>
</div>
</div>
<div class="data-card">
<table class="data-table">
<thead>
<tr>
<th>Código OC</th>
<th>Proveedor</th>
<th>Proyecto</th>
<th>Total Neto (CLP)</th>
<th>Estado</th>
</tr>
</thead>
<tbody>
{% for po in purchase_orders %}
<tr>
<td><strong>{{ po.code }}</strong></td>
<td>{{ po.vendor.name }}</td>
<td>{{ po.project.name }}</td>
<td>${{ po.net_amount_clp|floatformat:"0"|intcomma }} CLP</td>
<td><span class="badge badge-blue">{{ po.get_status_display }}</span></td>
</tr>
{% empty %}
<tr>
<td colspan="5" style="text-align:center; padding:2rem; color:var(--text-secondary);">
No hay órdenes de compra registradas.
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</section>
{% endblock %}