diff --git a/InvenTree/company/templates/company/detail_stock.html b/InvenTree/company/templates/company/detail_stock.html index 89ea0fdb2f..5bc7b9598a 100644 --- a/InvenTree/company/templates/company/detail_stock.html +++ b/InvenTree/company/templates/company/detail_stock.html @@ -7,19 +7,20 @@

Supplier Stock

- -
+{% include "stock_table.html" %} {% endblock %} {% block js_ready %} {{ block.super }} - loadStockTable($('#stock-table'), - { - url: "{% url 'api-stock-list' %}", - params: { - supplier: {{ company.id }}, - } + loadStockTable($('#stock-table'), { + url: "{% url 'api-stock-list' %}", + params: { + supplier: {{ company.id }}, + }, + buttons: [ + '#stock-options', + ] }); {% endblock %} \ No newline at end of file diff --git a/InvenTree/part/templates/part/stock.html b/InvenTree/part/templates/part/stock.html index 3311dafb8d..60f283bea9 100644 --- a/InvenTree/part/templates/part/stock.html +++ b/InvenTree/part/templates/part/stock.html @@ -13,25 +13,7 @@
-
- {% if part.active %} - - {% endif %} - -
- - -
- +{% include "stock_table.html" %} {% endblock %} @@ -87,14 +69,14 @@ return false; }); - $("#multi-item-take").click(function() { + $("#multi-item-remove").click(function() { updateStockItems({ action: 'remove', }); return false; }); - $("#multi-item-give").click(function() { + $("#multi-item-add").click(function() { updateStockItems({ action: 'add', }); diff --git a/InvenTree/stock/templates/stock/location.html b/InvenTree/stock/templates/stock/location.html index 9ea210a04e..311f0773cd 100644 --- a/InvenTree/stock/templates/stock/location.html +++ b/InvenTree/stock/templates/stock/location.html @@ -44,24 +44,7 @@
-
-
- - -
-
- - -
- +{% include "stock_table.html" %} {% include 'modals.html' %} diff --git a/InvenTree/templates/stock_table.html b/InvenTree/templates/stock_table.html new file mode 100644 index 0000000000..f5411fabb8 --- /dev/null +++ b/InvenTree/templates/stock_table.html @@ -0,0 +1,17 @@ +
+
+ + +
+
+ + +
\ No newline at end of file