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
Add subrecipe with Ingredient A and amount 1 and save.
Add recipe with Ingredient A and amount 2 and include subrecipe, then save.
Stock Ingredient A with exactly amount 2.
Go to recipes, you will see stock requirements are fulfilled since individually they do fulfill but recipe should not since total required is actually 3.
Consume Ingredient A with amount 1.
Go to recipes, you will see stock requirements are not fulfilled for recipe but it will say its missing only 1 but it should be 2 (subrecipe is good to go since it needs just 1).
Bug:
This happens if the same ingredient is used at different recipes. The main recipe's ingredients value is only used rather than cumulative
Additional info:
If there is an Ingredient B involved
Steps to reproduce:
Add subrecipe with Ingredient A and amount 1, Ingredient B and amount 1and save.
Add recipe with Ingredient A and amount 2 and include subrecipe, then save.
Stock Ingredient A with exactly amount 2.
Go to recipes, you will see stock requirements are not fulfilled since Ingredient B is missing (note: recipe also does not fulfill due to subrecipe).
So the requirements fulfilled works properly when the ingredients do not match/collide with the recipes involved.
The text was updated successfully, but these errors were encountered:
berrnd
changed the title
Bug: Requirements fulfilled are showing enough stock when it should not when using sub recipes
Bug: Same ingredient in parent/sub recipe breaks recipe stock fulfillment checking
May 11, 2024
Steps to reproduce:
Ingredient A and amount 1
and save.Ingredient A and amount 2
and include subrecipe, then save.Ingredient A
with exactly amount 2.Ingredient A
with amount 1.Bug:
This happens if the same ingredient is used at different recipes. The main recipe's ingredients value is only used rather than cumulative
Additional info:
If there is an Ingredient B involved
Steps to reproduce:
Ingredient A and amount 1
,Ingredient B and amount 1
and save.Ingredient A and amount 2
and include subrecipe, then save.Ingredient A
with exactly amount 2.So the requirements fulfilled works properly when the ingredients do not match/collide with the recipes involved.
The text was updated successfully, but these errors were encountered: