From ab4c42803143ef82ee191dff988ea6ef6ff94a11 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 11 Oct 2021 11:31:23 +1100 Subject: [PATCH] Allow conversion of out-of-stock items --- .../stock/templates/stock/item_base.html | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/InvenTree/stock/templates/stock/item_base.html b/InvenTree/stock/templates/stock/item_base.html index 3addeacde2..798802ab81 100644 --- a/InvenTree/stock/templates/stock/item_base.html +++ b/InvenTree/stock/templates/stock/item_base.html @@ -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"); });