mirror of
https://github.com/grocy/grocy.git
synced 2025-09-29 19:12:24 +00:00
Add amount to barcode created by the workflow InplaceAddBarcodeToExistingProduct on /purchase (closes #2085)
This commit is contained in:
@@ -277,13 +277,13 @@ Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
|
||||
|
||||
if (barcode != null)
|
||||
{
|
||||
if (barcode.amount != null && !barcode.amount.isEmpty())
|
||||
if (barcode.amount != null)
|
||||
{
|
||||
$("#display_amount").val(barcode.amount);
|
||||
$("#display_amount").select();
|
||||
}
|
||||
|
||||
if (barcode.qu_id != null && !barcode.qu_id.isEmpty())
|
||||
if (barcode.qu_id != null)
|
||||
{
|
||||
Grocy.Components.ProductAmountPicker.SetQuantityUnit(barcode.qu_id);
|
||||
}
|
||||
|
Reference in New Issue
Block a user