diff --git a/InvenTree/company/templates/company/detail_purchase_orders.html b/InvenTree/company/templates/company/detail_purchase_orders.html
index f2f3b8ceb3..aad4f7bf99 100644
--- a/InvenTree/company/templates/company/detail_purchase_orders.html
+++ b/InvenTree/company/templates/company/detail_purchase_orders.html
@@ -5,14 +5,15 @@
{% include 'company/tabs.html' with tab='po' %}
+
-{% include "order/po_table.html" with orders=company.outstanding_purchase_orders.all %}
+{% include "order/po_table.html" with orders=company.outstanding_purchase_orders.all toolbar='#button-bar' %}
{% if company.closed_purchase_orders.count > 0 %}
{% include "order/po_table_collapse.html" with title="Closed Orders" orders=company.closed_purchase_orders.all %}
@@ -23,15 +24,27 @@
{% block js_ready %}
{{ block.super }}
-$("#po-create").click(function() {
- launchModalForm("{% url 'purchase-order-create' %}",
+ function newOrder() {
+ launchModalForm("{% url 'purchase-order-create' %}",
{
data: {
supplier: {{ company.id }},
},
follow: true,
- }
- );
-});
+ });
+ }
+
+ $("#company-order").click(function() {
+ newOrder();
+ });
+
+ $("#company-order-2").click(function() {
+ newOrder();
+ });
+
+ $("#po-table").bootstrapTable({
+ search: true,
+ sortable: true,
+ });
{% endblock %}
\ No newline at end of file
diff --git a/InvenTree/company/templates/company/detail_stock.html b/InvenTree/company/templates/company/detail_stock.html
index 108342b2b1..95c7d1f6d1 100644
--- a/InvenTree/company/templates/company/detail_stock.html
+++ b/InvenTree/company/templates/company/detail_stock.html
@@ -7,6 +7,8 @@
Supplier Stock
+
+
{% include "stock_table.html" %}
{% endblock %}
diff --git a/InvenTree/order/templates/order/po_table.html b/InvenTree/order/templates/order/po_table.html
index cfd4811d97..32b5d4e80c 100644
--- a/InvenTree/order/templates/order/po_table.html
+++ b/InvenTree/order/templates/order/po_table.html
@@ -1,11 +1,14 @@
-
+
+
- Company |
- Order Reference |
- Description |
+ Company |
+ Order Reference |
+ Description |
Status |
Items |
+
+
{% for order in orders %}
{% 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/static/css/inventree.css b/InvenTree/static/css/inventree.css
index e4ebd182ee..1b9caaa891 100644
--- a/InvenTree/static/css/inventree.css
+++ b/InvenTree/static/css/inventree.css
@@ -158,6 +158,10 @@
.navigation {
}
+.nav-tabs {
+ margin-bottom: 20px;
+}
+
.breadcrump {
margin-bottom: 5px;
}