mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Add note to barcode created by the workflow InplaceAddBarcodeToExistingProduct on /purchase and /inventory (closes #2093)
This commit is contained in:
@@ -59,6 +59,7 @@ $('#save-inventory-button').on('click', function(e)
|
||||
jsonDataBarcode.barcode = GetUriParam("barcode");
|
||||
jsonDataBarcode.product_id = jsonForm.product_id;
|
||||
jsonDataBarcode.shopping_location_id = jsonForm.shopping_location_id;
|
||||
jsonDataBarcode.note = jsonForm.note;
|
||||
|
||||
Grocy.Api.Post('objects/product_barcodes', jsonDataBarcode,
|
||||
function(result)
|
||||
|
@@ -101,6 +101,7 @@ $('#save-purchase-button').on('click', function(e)
|
||||
jsonDataBarcode.shopping_location_id = jsonForm.shopping_location_id;
|
||||
jsonDataBarcode.qu_id = jsonForm.qu_id;
|
||||
jsonDataBarcode.amount = jsonForm.display_amount;
|
||||
jsonDataBarcode.note = jsonForm.note;
|
||||
|
||||
Grocy.Api.Post('objects/product_barcodes', jsonDataBarcode,
|
||||
function(result)
|
||||
|
Reference in New Issue
Block a user