mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-19 21:45:39 +00:00
Order from a part page
This commit is contained in:
@ -15,6 +15,9 @@
|
||||
<ul class="dropdown-menu">
|
||||
{% if part.active %}
|
||||
<li><a href="#" id='edit-part' title='Edit part'>Edit</a></li>
|
||||
{% if part.purchaseable %}
|
||||
<li><a href='#' id='order-part' title='Order part'>Order</a></li>
|
||||
{% endif %}
|
||||
<li><a href='#' id='duplicate-part' title='Duplicate Part'>Duplicate</a></li>
|
||||
<hr>
|
||||
<li><a href="#" id='deactivate-part' title='Deactivate part'>Deactivate</a></li>
|
||||
@ -158,6 +161,14 @@
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
$("#order-part").click(function() {
|
||||
launchModalForm("/order/purchase-order/order-parts/", {
|
||||
data: {
|
||||
part: {{ part.id }},
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
$("#edit-part").click(function() {
|
||||
launchModalForm(
|
||||
|
Reference in New Issue
Block a user