Fixed barcode QU was not saved for single QU products (fixes #1504)

This commit is contained in:
Bernd Bestel 2021-06-27 19:04:09 +02:00
parent 30e5cc3bc3
commit e646dd9332
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 2 additions and 0 deletions

View File

@ -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 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 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 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 ### Shopping list improvements/fixes
- The amount now defaults to `1` for adding items quicker - The amount now defaults to `1` for adding items quicker

View File

@ -10,6 +10,7 @@
var jsonData = $('#barcode-form').serializeJSON(); var jsonData = $('#barcode-form').serializeJSON();
jsonData.amount = jsonData.display_amount; jsonData.amount = jsonData.display_amount;
delete jsonData.display_amount; delete jsonData.display_amount;
jsonData.qu_id = $("#qu_id").val();
Grocy.FrontendHelpers.BeginUiBusy("barcode-form"); Grocy.FrontendHelpers.BeginUiBusy("barcode-form");