Initial commit — MarineMaintenance v1.0
Marine maintenance management: work orders with photos, ISM/SWP procedures, MSDS, inventory, RFQ/purchases, vessel history, bilingual PDF reports. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block title %}Compras{% endblock %}
|
||||
{% block page_title %}Compras de Materiales{% endblock %}
|
||||
{% block topbar_actions %}<a href="{{ url_for('purchase_new') }}" class="btn btn-primary">+ Nueva Compra</a>{% endblock %}
|
||||
{% block content %}
|
||||
<div class="card">
|
||||
<div class="table-wrap">
|
||||
<table>
|
||||
<thead><tr><th>Fecha</th><th>Proveedor</th><th>Factura</th><th>Total</th><th></th></tr></thead>
|
||||
<tbody>
|
||||
{% for p in purchases %}
|
||||
<tr>
|
||||
<td>{{ p.purchase_date }}</td>
|
||||
<td>{{ p.supplier_name or 'Sin proveedor' }}</td>
|
||||
<td class="text-gray">{{ p.invoice_number or '—' }}</td>
|
||||
<td class="text-cyan">${{ "%.2f"|format(p.total_amount or 0) }}</td>
|
||||
<td><a href="{{ url_for('purchase_detail', pid=p.id) }}" class="btn btn-sm btn-secondary">Ver</a></td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr><td colspan="5" class="text-gray" style="text-align:center;padding:30px">Sin compras registradas.</td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user