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

Order parts directly from a build

This commit is contained in:
Oliver Walters
2019-06-12 00:21:18 +10:00
parent 74327d3094
commit b138a4bd5f
3 changed files with 24 additions and 1 deletions

View File

@ -68,6 +68,14 @@ InvenTree | Allocate Parts
location.href = "{% url 'build-allocate' build.id %}?edit=1";
});
$("#btn-order-parts").click(function() {
launchModalForm("/order/purchase-order/order-parts/", {
data: {
build: {{ build.id }},
},
});
});
{% endif %}
{% endblock %}

View File

@ -3,6 +3,7 @@
<div id='#build-item-toolbar'>
<div class='btn-group'>
<button class='btn btn-primary' type='button' id='btn-allocate' title='Allocate Stock'>Allocate</button>
<button class='btn btn-primary' type='button' id='btn-order-parts' title='Order Parts'>Order Parts</button>
</div>
</div>