{% extends "epic/base_layout.html" %} {% load crispy_forms_tags %} {% load humanize %} {% block buttons %} Up {{ page_nav|safe }} {% endblock buttons %} {% block content %} {{ block.super }}
{% if shipment.from_warehouse %} {% else %} {% endif %} {% if shipment.from_warehouse %} {% else %} {% endif %}
SO #{{ shipment.id }}
PO # {{ shipment.ordr.html_link|safe }}
Ship-From {{ shipment.from_warehouse.html_link|safe }}Vendor {{ shipment.ordr.vendor.html_link|safe }}
Ship Date {{ shipment.ts|date:"Y‑m‑d" }}
Ship-To {{ shipment.warehouse.html_link|safe }}
Tracking #s {{ shipment.html_tracking_links|safe }}

Edit Delete

Notes

{{ shipment.notes|linebreaksbr }}

Shipment Items

{% if shipment.from_warehouse %} {% else %} {% endif %} {% if shipment.from_warehouse %} {% else %} {% endif %} {% for item in line_items %} {% if shipment.from_warehouse %} {% else %} {% endif %} {% if shipment.from_warehouse %} {% else %} {% endif %} {% endfor %}
Idx Ship QtyOrder QtyPart # Manufacturer Part #Vendor Part # PriceAmount
{{ item.index }} {{ item.qty|intcomma }}{{ item.order_line_item.qty|intcomma }}{{ item.part.html_link|safe }} {{ item.part.mfg }} {{ item.part.mfg_pn }} {{ item.order_line_item.vendor_part.html_link|safe }} $ {{ item.part_cost|floatformat:6|intcomma }} $ {{ item.line_cost|floatformat:2|intcomma }}
Freight Cost $ {{ shipment.cost_freight|floatformat:2|intcomma }}
Other Costs $ {{ shipment.cost_other|floatformat:2|intcomma }}
Discounts $ {{ shipment.cost_discount|floatformat:2|intcomma }}
Total $ {{ shipment.total_cost|floatformat:2|intcomma }}

{% endblock content %}