You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The calorie calculation in the recipe page depends on wether the "Only check if any amount is in stock" checkbox is checked for the ingredient. For the test, I created a Test Product for which one piece weighs 100 grams, and one piece has 100 calories. Thus 10 grams should have 10 calories. For the test example, for the first ingredients entry it is not checked while for the second one it is, this is the result:
When I set the default unit to gram and change the calories accordingly, it shows the correct calories:
So, when the checkbox is checked, the calorie calculation will always use the default stock unit, even when the entered unit is available.
The text was updated successfully, but these errors were encountered:
Partly depends on definition (not everything you personally expect to behave differently is per se a bug), but was an accepted problem before (ref #1338) and therefore a regression - so could be fixed, if someone out there feels the need to work on that.
berrnd
changed the title
Bug: Recipe page showing wrong number of calories when "Only check if any amount is in stock" is checked
Bug: "Only check if any amount is in stock" recipe ingredients: Wrong costs/calories when using deviating QU
May 1, 2024
https://test-qxe83wxuz8mg8ytsp596xi.demo-prerelease.grocy.info/recipes
The calorie calculation in the recipe page depends on wether the "Only check if any amount is in stock" checkbox is checked for the ingredient. For the test, I created a Test Product for which one piece weighs 100 grams, and one piece has 100 calories. Thus 10 grams should have 10 calories. For the test example, for the first ingredients entry it is not checked while for the second one it is, this is the result:
When I set the default unit to gram and change the calories accordingly, it shows the correct calories:
So, when the checkbox is checked, the calorie calculation will always use the default stock unit, even when the entered unit is available.
The text was updated successfully, but these errors were encountered: