-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/InvenTree/company/templates/company/company_base.html b/InvenTree/company/templates/company/company_base.html
index 6de8d83bbb..2c1efbb7e5 100644
--- a/InvenTree/company/templates/company/company_base.html
+++ b/InvenTree/company/templates/company/company_base.html
@@ -24,6 +24,19 @@ InvenTree | Company - {{ company.name }}
{% include "hover_image.html" with image=order.supplier.image hover=True %}{{ order.supplier.name }}
@@ -15,4 +18,5 @@
{{ order.lines.count }}
{% endfor %}
+
\ No newline at end of file
diff --git a/InvenTree/order/templates/order/purchase_order_detail.html b/InvenTree/order/templates/order/purchase_order_detail.html
index a0b780408c..99694f430f 100644
--- a/InvenTree/order/templates/order/purchase_order_detail.html
+++ b/InvenTree/order/templates/order/purchase_order_detail.html
@@ -62,6 +62,9 @@ InvenTree | {{ order }}
+ {% if order.status == OrderStatus.PENDING %}
+
+ {% endif %}
{% if order.status == OrderStatus.PENDING and order.lines.count > 0 %}
@@ -73,10 +76,6 @@ InvenTree | {{ order }}
+ {% endfor %}
+
{% if part.variant_of and part.variant_of.attachments.count > 0 %}
@@ -83,4 +85,9 @@
});
});
+ $("#attachment-table").bootstrapTable({
+ search: true,
+ sortable: true,
+ });
+
{% endblock %}
\ No newline at end of file
diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html
index ef47e70515..68ae0ed3bd 100644
--- a/InvenTree/part/templates/part/detail.html
+++ b/InvenTree/part/templates/part/detail.html
@@ -4,9 +4,12 @@
{% include 'part/tabs.html' with tab='detail' %}
+
Part Details
+
+
+
-
Part Details
Part name
@@ -75,7 +78,6 @@
-
Part Type
Virtual
diff --git a/InvenTree/part/templates/part/orders.html b/InvenTree/part/templates/part/orders.html
index 8c9f0c3cee..975a41049a 100644
--- a/InvenTree/part/templates/part/orders.html
+++ b/InvenTree/part/templates/part/orders.html
@@ -5,19 +5,38 @@
{% include 'part/tabs.html' with tab='orders' %}
-
-
-
Open Part Orders
-
-
+
Part Orders
+
+
+
+
+ Order Part
-{% include "order/po_table.html" with orders=part.open_purchase_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 %}
\ No newline at end of file
diff --git a/InvenTree/part/templates/part/partial_delete.html b/InvenTree/part/templates/part/partial_delete.html
index baa429e2a5..b6516057bb 100644
--- a/InvenTree/part/templates/part/partial_delete.html
+++ b/InvenTree/part/templates/part/partial_delete.html
@@ -2,7 +2,9 @@
{% block pre_form_content %}
-Are you sure you want to delete part '{{ part.full_name }}'?
+
+ Are you sure you want to delete part '{{ part.full_name }}'?
+
{% if part.used_in_count %}
diff --git a/InvenTree/part/templates/part/stock.html b/InvenTree/part/templates/part/stock.html
index 04d1b0278a..a41d5fd32a 100644
--- a/InvenTree/part/templates/part/stock.html
+++ b/InvenTree/part/templates/part/stock.html
@@ -4,13 +4,7 @@
{% include 'part/tabs.html' with tab='stock' %}
-
-
-
Part Stock
-
-
-
-
+
Part Stock
{% if part.is_template %}
diff --git a/InvenTree/part/templates/part/supplier.html b/InvenTree/part/templates/part/supplier.html
index ea5baa2759..30fe9ecc0b 100644
--- a/InvenTree/part/templates/part/supplier.html
+++ b/InvenTree/part/templates/part/supplier.html
@@ -4,14 +4,7 @@
{% include 'part/tabs.html' with tab='suppliers' %}
-
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/InvenTree/part/templates/part/used_in.html b/InvenTree/part/templates/part/used_in.html
index 135427e313..fb7e76e7e9 100644
--- a/InvenTree/part/templates/part/used_in.html
+++ b/InvenTree/part/templates/part/used_in.html
@@ -4,15 +4,7 @@
{% include 'part/tabs.html' with tab='used' %}
-