Allow conversion of out-of-stock items

This commit is contained in:
Oliver 2021-10-11 11:31:23 +11:00
parent 49601d2b7e
commit ab4c428031

View File

@ -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 %} {% if item.part.can_convert %}
$("#stock-convert").click(function() { $("#stock-convert").click(function() {
launchModalForm("{% url 'stock-item-convert' item.id %}", launchModalForm("{% url 'stock-item-convert' item.id %}",
@ -603,6 +593,16 @@ $("#stock-convert").click(function() {
}); });
{% endif %} {% endif %}
{% if item.in_stock %}
$("#stock-assign-to-customer").click(function() {
launchModalForm("{% url 'stock-item-assign' item.id %}",
{
reload: true,
}
);
});
$("#stock-move").click(function() { $("#stock-move").click(function() {
itemAdjust("move"); itemAdjust("move");
}); });