From 73a32f66c8bb920870244b1013cbe7f30021a41d Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 3 Mar 2022 17:31:25 +1100 Subject: [PATCH] Adds ability to export stock "assigned" to a particular customer --- InvenTree/company/templates/company/detail.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/InvenTree/company/templates/company/detail.html b/InvenTree/company/templates/company/detail.html index 190efd6cd4..3c9aa92c9a 100644 --- a/InvenTree/company/templates/company/detail.html +++ b/InvenTree/company/templates/company/detail.html @@ -169,7 +169,12 @@
- {% include "filter_list.html" with id="customerstock" %} +
+ + {% include "filter_list.html" with id="customerstock" %} +
@@ -228,6 +233,10 @@ filterTarget: '#filter-list-customerstock', }); + $('#assigned-stock-export').click(function() { + downloadTableData($('#assigned-stock-table')); + }); + {% if company.is_customer %} loadSalesOrderTable("#sales-order-table", { url: "{% url 'api-so-list' %}",