Clear displayed quantity unit after purchase/consume/inventory bookings

This commit is contained in:
Bernd Bestel
2019-03-09 12:31:45 +01:00
parent a3d4fd834f
commit 4d215edbd0
3 changed files with 3 additions and 0 deletions

View File

@@ -52,6 +52,7 @@
$("#new_amount").attr("step", "1");
$("#new_amount").parent().find(".invalid-feedback").text(L('The amount cannot be lower than #1', '0'));
$('#new_amount').val('');
$('#new_amount_qu_unit').text("");
Grocy.Components.DateTimePicker.Clear();
Grocy.Components.ProductPicker.SetValue('');
Grocy.Components.ProductPicker.GetInputElement().focus();