Optimize recipe ingredient costs/calories calculation when only_check_single_unit_in_stock is used (closes #780)

This commit is contained in:
Bernd Bestel
2022-12-26 19:48:26 +01:00
parent 3f2ad17460
commit 76500c57bd
3 changed files with 137 additions and 1 deletions

View File

@@ -18,6 +18,7 @@
- Will be used/selected as the default quantity unit on the consume page
- The product's "Quick consume amount" is now displayed related to this quantity unit ("quick consume/open buttons" on the stock overview page)
- Defaults to the product's "Quantity unit stock" (so no changed behavior when not configured)
- Changed that when the ingredient option "Only check if any amount is in stock" is enabled, costs and calories are now based on the original entered amount instead of an "virtual" fixed amount of `1`
- Fixed that hiding the "Purchased date" column (table options) on the stock entries page didn't work
- Fixed that the consumed amount was wrong, when consuming multiple substituted subproducts at once and when multiple/different conversion factors were involved