{% extends "bids/base.html" %}{% block title %}Award{% endblock %} {% block content %}

Award scenarios

Shares are measured on spend weight. Capacity per bid is taken from the bid. Savings are against {% if rfq.incumbent %}last paid{% else %}last paid or target{% endif %} price. Incumbent: {{ rfq.incumbent|default:"none" }}.

{% if awarded %}
Awarded on {{ awarded.created_at|date:"d M Y" }} ({{ awarded.scenario }}). View memo
{% endif %}
{% for s in scenarios %}

{{ s.r.name }}{% if best and s.r.name == best.name %} lowest TCO{% endif %}

{% if s.r.feasible %}
Total TCO
{{ rfq.currency }} {{ s.r.total|floatformat:"0g" }}
Average score
{{ s.r.avg_score|floatformat:1 }}
Suppliers
{{ s.suppliers|join:", " }}
{% if s.r.savings is not None %}
Savings vs baseline
{{ s.r.savings|floatformat:"0g" }} ({{ s.r.savings_pct|floatformat:1 }}% of {{ s.r.baseline|floatformat:"0g" }})
{% endif %}
{% for it, parts in s.rows %}{% endfor %}
{{ it.line_no }}. {{ it.description|truncatechars:34 }}{% for n, sh in parts %}{{ n }} {% widthratio sh 1 100 %}%{% if not forloop.last %}, {% endif %}{% endfor %}
{% if user.is_staff and rfq.status != 'draft' %}
{% csrf_token %}
{% endif %} {% else %}

Infeasible: {{ s.r.message }}

{% endif %}
{% empty %}

No qualified bids to optimise yet.

{% endfor %}
{% endblock %}