diff --git a/changelog/62_UNRELEASED_xxxx-xx-xx.md b/changelog/62_UNRELEASED_xxxx-xx-xx.md index ef848dbf..54f596cf 100644 --- a/changelog/62_UNRELEASED_xxxx-xx-xx.md +++ b/changelog/62_UNRELEASED_xxxx-xx-xx.md @@ -30,6 +30,7 @@ - Fixed that the current stock total value (header of the stock overview page) didn't include decimal amounts (thanks @Ape) - Fixed that the transfer page was not fully populated when opening it from the stock entries page - Fixed that undoing a consume/open action from the success notification on the stock entries page was not possible +- Fixed that adding a barcode to a product didn't save the selected quantity unit when the product only has a single one ### Shopping list improvements/fixes - The amount now defaults to `1` for adding items quicker diff --git a/public/viewjs/productbarcodeform.js b/public/viewjs/productbarcodeform.js index 5339c0eb..5d75ef93 100644 --- a/public/viewjs/productbarcodeform.js +++ b/public/viewjs/productbarcodeform.js @@ -10,6 +10,7 @@ var jsonData = $('#barcode-form').serializeJSON(); jsonData.amount = jsonData.display_amount; delete jsonData.display_amount; + jsonData.qu_id = $("#qu_id").val(); Grocy.FrontendHelpers.BeginUiBusy("barcode-form");