2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

Adds table filters for stock assigned to a particular customer

This commit is contained in:
Oliver Walters
2020-07-14 15:54:03 +10:00
parent cfd1194a6e
commit 0152ae79ef
3 changed files with 34 additions and 4 deletions

View File

@ -9,6 +9,12 @@
<h4>{% trans "Assigned Stock" %}</h4>
<hr>
<div id='button-toolbar'>
<div class='filter-list' id='filter-list-stock'>
<!-- An empty div in which the filter list will be constructed -->
</div>
</div>
<table class='table table-striped table-condensed' id='stock-table'></table>
{% endblock %}
@ -18,12 +24,12 @@
loadStockTable($("#stock-table"), {
params: {
test: 7,
customer: {{ company.id }},
part_detail: true,
location_detail: true,
},
url: "{% url 'api-stock-list' %}",
filterKey: "customerstock",
});
{% endblock %}