{% extends "base.html" %} {% block title %}{{ nombre }}{% endblock %} {% block page_title %}{{ nombre }}{% endblock %} {% block topbar_actions %} Volver al inventario {% endblock %} {% block content %} {% if stats %}
| Fecha | Factura | Proveedor | Cantidad | Precio unit. | Dto. | Subtotal |
|---|---|---|---|---|---|---|
| {{ c.fecha }} | {{ c.factura_numero }} | {% if c.proveedor_id %} {{ c.proveedor_nombre }} {% else %}—{% endif %} | {{ "%.2f"|format(c.cantidad) if c.cantidad % 1 else "%.0f"|format(c.cantidad) }} | {{ "%.2f"|format(c.precio_unitario) }} € | {% if c.descuento_pct %}{{ c.descuento_pct }}%{% else %}—{% endif %} | {{ "%.2f"|format(c.subtotal) }} € |
| Sin compras registradas | ||||||
| Total | {% if stats %}{{ "%.0f"|format(stats.total_unidades) }}{% endif %} | {% if stats %}media {{ "%.2f"|format(stats.precio_medio) }} €{% endif %} | {% if stats %}{{ "%.2f"|format(stats.total_gastado) }} €{% endif %} | |||