2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 04:55:44 +00:00

Allow stock-filtering and export using SupplierPart ID

This commit is contained in:
Oliver Walters
2020-02-12 11:16:00 +11:00
parent 8dd8505a2c
commit 6d80788618
2 changed files with 30 additions and 1 deletions

View File

@ -33,4 +33,19 @@
url: "{% url 'api-stock-list' %}",
});
$("#stock-export").click(function() {
launchModalForm("{% url 'stock-export-options' %}", {
submit_text: "Export",
success: function(response) {
var url = "{% url 'stock-export' %}";
url += "?format=" + response.format;
url += "&cascade=" + response.cascade;
url += "&supplier_part={{ part.id }}";
location.href = url;
},
});
});
{% endblock %}