Prefill the stock entry amount when using a stock entry grocycode on /consume (closes #1736)

This commit is contained in:
Bernd Bestel
2022-02-07 20:48:17 +01:00
parent dd36301460
commit 4279bf6445
2 changed files with 2 additions and 0 deletions

View File

@@ -234,6 +234,7 @@ $("#location_id").on('change', function(e)
function(stockEntries)
{
OnLocationChange(stockEntries[0].location_id, gc[3]);
$('#display_amount').val(stockEntries[0].amount);
},
function(xhr)
{