From e646dd9332669f3ee8e457835c194787d4732473 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sun, 27 Jun 2021 19:04:09 +0200 Subject: [PATCH] Fixed barcode QU was not saved for single QU products (fixes #1504) --- changelog/62_UNRELEASED_xxxx-xx-xx.md | 1 + public/viewjs/productbarcodeform.js | 1 + 2 files changed, 2 insertions(+) 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");