From 3acad5056a980b87ecae7f7b1cd25b26f835566f Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sun, 27 Jun 2021 18:37:18 +0200 Subject: [PATCH] Fixed inventory action hint when entered amount equals current stock amount (fixes #1522) --- public/viewjs/inventory.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/viewjs/inventory.js b/public/viewjs/inventory.js index a0b5f85a..59cd1cbf 100644 --- a/public/viewjs/inventory.js +++ b/public/viewjs/inventory.js @@ -343,6 +343,10 @@ $('#display_amount').on('keyup', function(e) Grocy.Components.LocationPicker.GetInputElement().removeAttr('required'); } } + else if (newAmount == productStockAmount) + { + $('#inventory-change-info').addClass('d-none'); + } if (!Grocy.FeatureFlags.GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING) {