{% extends "admin/base_site_nav.html" %} {% load i18n %} {% block content_title %}
{% block tools %}{% endblock %}

{{title|escape}}: {% if downstream %}{% trans "Where Used"|capfirst|escape %}{% else %}{% trans "Supply Path"|capfirst|escape %}{% endif %}

{% if model == 'bucket' %}{% include "buckettabs.html" %} {% elif model == 'buffer' %}{% include "buffertabs.html" %} {% elif model == 'calendar' %}{% include "calendartabs.html" %} {% elif model == 'customer' %}{% include "customertabs.html" %} {% elif model == 'demand' %}{% include "demandtabs.html" %} {% elif model == 'flow' %}{% include "flowtabs.html" %} {% elif model == 'forecast' %}{% include "forecasttabs.html" %} {% elif model == 'group' %}{% include "grouptabs.html" %} {% elif model == 'item' %}{% include "itemtabs.html" %} {% elif model == 'load' %}{% include "loadtabs.html" %} {% elif model == 'location' %}{% include "locationtabs.html" %} {% elif model == 'operation' %}{% include "operationtabs.html" %} {% elif model == 'resource' %}{% include "resourcetabs.html" %} {% elif model == 'setupmatrix' %}{% include "setupmatrixtabs.html" %} {% endif %}
{% endblock %} {% block content %}
{% include "operationcontext.html" %} {% include "resourcecontext.html" %} {% include "buffercontext.html" %} {% include "locationcontext.html" %} {% include "itemcontext.html" %} {% for i in supplypath %} {% if i.buffer %} {% else %}{% endfor %}
Operation Resource Buffer Location Item Consumed Qty
This Cumulative
{% ifchanged i.level i.operation %}{% if i.operation %}{{i.operation}}{% endif %}{% endifchanged %} {% ifchanged i.level i.operation %}{% if i.operation %}{% for j in i.operation.loads.all %}{{j.resource}}
{% endfor %}{% endif %}{% endifchanged %}
{% if i.buffer %}{{i.buffer}}{% endif %} {% if i.buffer.location %}{{i.buffer.location}}{% endif %} {% if i.buffer.item %}{{i.buffer.item}}{% endif %}{% endif %} {% if i.consumingflow %}
{{i.consumingflow.quantity|floatformat:2}}
{% endif %}
{{i.cumquantity|floatformat:2}}
{% endblock %}