{% extends "epic/base_layout.html" %} {% load humanize %} {% block buttons %} Up {% endblock buttons %} {% block content %} {{ block.super }}
PO #{{ order.id }}
Vendor {{ order.vendor.html_link|safe }}

Order Status

{% if shortage_count > 0 %}
{{ shortage_count }} shortage{{ shortage_count|pluralize }} found!
{% else %}
No shortages found.
{% endif %}
{% if makeup_order_list %}
{% if max_lead_time > available_time %}

Warning

Lead-time required is {{ max_lead_time }} weeks (component {{ max_comp.html_link|safe }} for assembly {{ max_assy.html_link|safe }}) but {% if available_time > 0 %} there are only {{ available_time }} weeks between now and when the order is expected to arrive. {% else %} the order is due already. {% endif %}
Please adjust Expected Arrival Date of Order {{ order.html_link|safe }} to {{ min_assy_arrival_date|date:"Y‑m‑d" }} or later or work a miracle.
{% endif %}
{% for order in makeup_order_list %}

{{ order.src.name }} {% if order.src.is_vendor %}PO shipping{% else %}inter-warehouse shipment{% endif %} to {{ order.dst }}

{% if order.src.is_vendor %}{% endif %} {% if order.src.is_vendor %} {% endif %} {% for item in order.items %} {% if order.src.is_vendor %} {% endif %} {% if order.src.is_vendor %} {% endif %} {% endfor %}
IdxQtyPart #Vendor Part #Manufacturer Part #PriceAmount
{{ forloop.counter }} {{ item.qty|intcomma }} {{ item.part.html_link|safe }}{{ item.vendor_part.html_link|safe }}{{ item.part.mfg }} {{ item.part.mfg_pn }} $ {{ item.vendor_part.price|floatformat:6|intcomma }} $ {{ item.amount|floatformat:2|intcomma }}
{% endfor %}
{% endif %}
{% for entry in open_orders reversed %} {% if entry.order.assembly_line_items %} {% else %} {% endif %} {% endfor %}
DateTransaction Assemblies on order
{{ entry.order.expected_arrival_date|date:"Y‑m‑d" }}Assembly Order {{ entry.order.html_link|safe }} {% for item in entry.items %} {% if item.part.assembly_items %}
{{ item.qty_remaining_to_ship }}× {{ item.part.html_link|safe }}
{% endif %} {% endfor %}
{% for item in entry.items %} {% if item.part.assembly_items %}
{{ item.part.mfg }} {{ item.part.mfg_pn }}
{% endif %} {% endfor %}
Parts Order {{ entry.order.html_link|safe }} from {{ entry.order.vendor.name }} for ${{ entry.order.total_cost|floatformat:2|intcomma }}

Detailed Part Statuses

{% for name in warehouse_names %} {% endfor %} {% for sts in comp_status %} {% for w_sts in sts.warehouses %} {% endfor %} {% endfor %}
Part #{{ name }}
{{ sts.part.html_link|safe }} ({{ sts.part.overage|floatformat:1 }}% overage) {{ w_sts.qty_remaining|intcomma }} {% for p in w_sts.qty_breakdown %} {% if forloop.first %}= {% else %}+ {% endif %} {{ p.qty|intcomma }}×{{ p.part.html_link|safe }} {% endfor %}
{% for order in makeup_order_list %}
{% csrf_token %} {% if order.src.is_vendor %} {% else %} {% endif %} {% for item in order.items %} {% if order.src.is_vendor %} {% endif %} {% endfor %}
{% endfor %} {% endblock content %}