{% extends "part/part_base.html" %} {% load static %} {% block details %} {% include 'part/tabs.html' with tab='orders' %}

Part Orders


{% include "order/po_table.html" with orders=part.open_purchase_orders toolbar='#button-bar' %} {% if part.closed_purchase_orders|length > 0 %}

Closed Orders

{% include "order/po_table.html" with orders=part.closed_purchase_orders %} {% endif %} {% endblock %} {% block js_ready %} {{ block.super }} $("#po-table").bootstrapTable({ search: true, sortable: true, }); $("#part-order-2").click(function() { launchModalForm("/order/purchase-order/order-parts/", { data: { part: {{ part.id }}, }, }); }); {% endblock %}