{% extends "epic/base_layout.html" %} {% load crispy_forms_tags %} {% load humanize %} {% block buttons %} Up {{ page_nav|safe }} {% endblock buttons %} {% block content %} {{ block.super }}
{% for field in fields %} {% endfor %}
{{ field.0 }}{{ field.1|safe }}
Edit Delete
{% for v in vendor_parts %} {% endfor %}
VendorVendor's Part #PriceStatus
{{ v.vendor.name }}{{ v.html_link|safe }} $ {{ v.price }}{{ v.strstatus }}

{% if part_users %}

Assemblies using this part

{{ part_users|safe }}
{% endif %}

Open Orders for this part

{% for item in open_order_items %} {{ item.txtn.order.html_link|safe }} ({{ item.txtn.order.vendor.name }}, {{ item.qty_remaining_to_ship }}×{{ item.part.html_link|safe }}) {% if forloop.last %}.{% else %}, {% endif %} {% endfor %}

Cost Summary

{% if bom %} {% endif %}
Target Avg
Assembly: $ {{ cost_summary.part.tgt|floatformat:2|intcomma }} $ {{ cost_summary.part.avg|floatformat:2|intcomma }}
Components: $ {{ cost_summary.cmp.tgt|floatformat:2|intcomma }} $ {{ cost_summary.cmp.avg|floatformat:2|intcomma }}
Total: $ {{ cost_summary.tot.tgt|floatformat:2|intcomma }} $ {{ cost_summary.tot.avg|floatformat:2|intcomma }}
{% if history %}
{% for w in history.warehouses %} {% empty %} {% endfor %} {% for e in history.events %} {% for item_list in e.warehouses %} {% empty %} {% endfor %} {% endfor %}
Warehouse Stock
Date Description{{ w.name }}
{{ e.ts|date:"Y‑m‑d" }} {{ e.desc|safe }} {% for item in item_list %}
{{ item.qty|intcomma }}×{{ item.part.html_link|safe }}
{% endfor %}
—None—
{% endif %}
{% if bom %} {% for row in bom %} {% endfor %}
IdxPNMfg PNQtyRefdes SPQTargetAvgLine Cumulative
{{ forloop.counter }} {{ row.best_part.html_link|safe }} {{ row.best_part.mfg }} {{ row.best_part.mfg_pn }} {{ row.assy_item.qty }}
{{ row.refdes_list|join:", " }}
{{ row.best_part.spq|intcomma }} $ {{ row.best_part.target_price|floatformat:6|intcomma }} $ {{ row.avg_cost|floatformat:6|intcomma }} $ {{ row.amount|floatformat:2|intcomma }} $ {{ row.cumulative_cost|floatformat:2|intcomma }}
{% endif %}

{% endblock content %}