{% extends "site_base.html" %} {% load i18n %} {% load bootstrap_tags %} {% block head_title %}{% trans "Supply" %}{% endblock %} {% block extra_head %} {% endblock %} {% block body_class %}supply{% endblock %} {% block body_base %}
{% include "_messages.html" %}
{% trans "Supply" %} {% comment %} {% if agent %}     Create Supplier {% endif %} {% endcomment %} {% trans "Exchange List" %} {% if agent %}
{% csrf_token %} Choose which type to create a new exchange: {{ nav_form.exchange_type }}
{% endif %}

{% trans "Requirements by Supplier" %}:

    {% for agent, sources in suppliers.items %}
  • {% trans "Buy from" %} {{ agent.name }} {% trans "Combined Score" %}: {{ agent.score }}
    • {% for source, requirements in sources.items %}
    • {{ source.resource_type.name }} {% trans "Total required" %} {{ source.total_required }} {% trans "Lead time" %}: {{ source.lead_time }} {% trans "days" %} {% trans "Score" %}: {{ source.score }}
      • {% for item in requirements %}
      • {{ item.resource_type.name }}: {{ item.quantity_to_buy }} {{ item.unit_of_quantity }} {% trans "due" %} {{ item.due_date }} {% trans "for demand" %}: {{ item.independent_demand }}
      • {% endfor %}
      {% endfor %}
    {% endfor %}
{% if mreqs %}

{% trans "Open Purchase Requirements" %}:

    {% for item in mreqs %}
  • {{ item.resource_type.name }}: {{ item.quantity_to_buy }} {{ item.unit_of_quantity }} {% trans "due" %} {{ item.due_date }}
  • {% trans "for process" %}: {{ item.process }}

    {% trans "for demand" %}: {{ item.independent_demand }}

      {% for source in item.resource_type.producing_agent_relationships %}
    • {% trans "Buy from" %} {{ source.agent.name }} {% trans "Lead time" %}: {{ source.lead_time }} {% trans "days" %} {% trans "Score" %}: {{ source.score }}
    • {% endfor %}
    {% endfor %}
{% endif %} {% if treqs %}

{% trans "Open Tool Requirements" %}:

    {% for item in treqs %}
  • {{ item.resource_type.name }}: {{ item.quantity_to_buy }} {{ item.unit_of_quantity }} {% trans "due" %} {{ item.due_date }}
  • {% trans "for process" %}: {{ item.process }}

    {% trans "for demand" %}: {{ item.independent_demand }}

      {% for source in item.resource_type.producing_agent_relationships %}
    • {% trans "Buy from" %} {{ source.agent.name }} {% trans "Lead time" %}: {{ source.lead_time }} {% trans "days" %} {% trans "Score" %}: {{ source.score }}
    • {% endfor %}
    {% endfor %}
{% endif %}
{% endblock %} {% block extra_script %} {% endblock %} {% block extra_body %} {{ block.super }} {% endblock %}