From b3ec748123edbf24c7735954debacb9db43cd357 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 6 Jan 2020 08:52:28 +1100 Subject: [PATCH] Display current stock item quantity in stock-adjust modal form --- InvenTree/stock/templates/stock/stock_adjust.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/InvenTree/stock/templates/stock/stock_adjust.html b/InvenTree/stock/templates/stock/stock_adjust.html index 70463d14c1..ac9fbce58d 100644 --- a/InvenTree/stock/templates/stock/stock_adjust.html +++ b/InvenTree/stock/templates/stock/stock_adjust.html @@ -1,4 +1,5 @@ {% load i18n %} +{% load inventree_extras %} {% block pre_form_content %} @@ -14,10 +15,9 @@ {% trans "Stock Item" %} {% trans "Location" %} + {% trans "Quantity" %} {% if edit_quantity %} {{ stock_action_title }} - {% else %} - {% trans "Quantity" %} {% endif %} @@ -26,6 +26,7 @@ {% include "hover_image.html" with image=item.part.image hover=True %} {{ item.part.full_name }} {{ item.part.description }} {{ item.location.pathstring }} + {% decimal item.quantity %} {% if edit_quantity %} {{ item.error }} {% endif %} {% else %} - {{ item.new_quantity }} {% endif %}