Fixed inventory action hint when entered amount equals current stock amount (fixes #1522)

This commit is contained in:
Bernd Bestel 2021-06-27 18:37:18 +02:00
parent 44d6173569
commit 3acad5056a
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -343,6 +343,10 @@ $('#display_amount').on('keyup', function(e)
Grocy.Components.LocationPicker.GetInputElement().removeAttr('required'); 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) if (!Grocy.FeatureFlags.GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING)
{ {