Allow conversion of out-of-stock items
This commit is contained in:
parent
49601d2b7e
commit
ab4c428031
|
|
@ -583,16 +583,6 @@ $("#stock-delete").click(function () {
|
|||
);
|
||||
});
|
||||
|
||||
{% if item.in_stock %}
|
||||
|
||||
$("#stock-assign-to-customer").click(function() {
|
||||
launchModalForm("{% url 'stock-item-assign' item.id %}",
|
||||
{
|
||||
reload: true,
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
{% if item.part.can_convert %}
|
||||
$("#stock-convert").click(function() {
|
||||
launchModalForm("{% url 'stock-item-convert' item.id %}",
|
||||
|
|
@ -603,6 +593,16 @@ $("#stock-convert").click(function() {
|
|||
});
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if item.in_stock %}
|
||||
$("#stock-assign-to-customer").click(function() {
|
||||
launchModalForm("{% url 'stock-item-assign' item.id %}",
|
||||
{
|
||||
reload: true,
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
$("#stock-move").click(function() {
|
||||
itemAdjust("move");
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue