Add note to barcode created by the workflow InplaceAddBarcodeToExistingProduct on /purchase and /inventory (closes #2093)

This commit is contained in:
Bernd Bestel
2023-01-04 19:56:55 +01:00
parent c0fbc4adaf
commit f057ae7e06
3 changed files with 3 additions and 0 deletions

View File

@@ -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)

View File

@@ -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)