{% extends "base.html" %} {% block contenido %}
Comparativo de Ofertas

{% if purchase_request %}Solicitud de Compra: {{ purchase_request.document_no or purchase_request.id }} ·{% else %} Comparativo legacy sin Solicitud de Compra reconstruible ·{% endif %} Orden base: {{ base_order.document_no or base_order.id }} · Ofertas participantes: {{ orders|length }} {% if selected_round %} · Ronda {{ selected_round.round_number }} ({{ selected_round.status }}){% endif %}

{% if rounds %}
Histórico de rondas: {% for round in rounds %} Ronda {{ round.round_number }} · {{ round.status }} {% endfor %}
Abrir nueva ronda

Seleccione explícitamente las órdenes que participarán. La ronda actual quedará cerrada e inmutable.

{% for order in candidate_orders %}
{% endfor %}
{% endif %}
{% for order in orders %} {% endfor %} {% for row in comparison_rows %} {% for order in orders %} {% set offer = row.offers[order.id] %} {% endfor %} {% else %} {% endfor %}
Comparación de líneas entre órdenes de compra participantes.
Artículo {{ order.supplier_name or order.document_no or order.id }}{{ order.document_no or order.id }}
{{ row.item.item_name or row.item.item_code }}{{ row.item.item_code }} · {{ row.item.qty }} {{ row.item.uom or "" }} {% if offer %}{{ offer.rate or "0" }}{{ offer.qty }} · {{ offer.amount or "0" }}{% else %}Sin cobertura{% endif %}
Las órdenes no tienen líneas para comparar.
{% endblock %}