mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Reload page after ordering part
This commit is contained in:
parent
a9d1cadc12
commit
d40fc59616
@ -1,3 +1,11 @@
|
|||||||
|
:root {
|
||||||
|
--primary-color: #335d88;
|
||||||
|
--secondary-color: #b69c80;
|
||||||
|
--highlight-color: #f5efe8;
|
||||||
|
--basic-color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.qr-code {
|
.qr-code {
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
max-height: 400px;
|
max-height: 400px;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<div id='button-bar'>
|
<div id='button-bar'>
|
||||||
<div class='btn-group'>
|
<div class='btn-group'>
|
||||||
<button class='btn btn-primary' type='button' id='part-order-2' title='Order part'>Order Part</button>
|
<button class='btn btn-primary' type='button' id='part-order2' title='Order part'>Order Part</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -31,11 +31,12 @@ $("#po-table").bootstrapTable({
|
|||||||
sortable: true,
|
sortable: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#part-order-2").click(function() {
|
$("#part-order2").click(function() {
|
||||||
launchModalForm("/order/purchase-order/order-parts/", {
|
launchModalForm("{% url 'order-parts' %}", {
|
||||||
data: {
|
data: {
|
||||||
part: {{ part.id }},
|
part: {{ part.id }},
|
||||||
},
|
},
|
||||||
|
reload: true,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -184,8 +184,8 @@
|
|||||||
data: {
|
data: {
|
||||||
action: "count",
|
action: "count",
|
||||||
part: {{ part.id }},
|
part: {{ part.id }},
|
||||||
|
},
|
||||||
reload: true,
|
reload: true,
|
||||||
}
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -225,10 +225,10 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
$("#part-order").click(function() {
|
$("#part-order").click(function() {
|
||||||
launchModalForm("/order/purchase-order/order-parts/", {
|
launchModalForm("{% url 'order-parts' %}", {
|
||||||
data: {
|
data: {
|
||||||
part: {{ part.id }},
|
part: {{ part.id }},
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user