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:
@ -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 %}
|
Reference in New Issue
Block a user