recipes icon indicating copy to clipboard operation
recipes copied to clipboard

Change embedded recipe quantities

Open tuetenk0pp opened this issue 3 years ago • 6 comments

It would be nice to be able to change the desired quantities for a recipe used in another recipe.

tuetenk0pp avatar Sep 21 '21 11:09 tuetenk0pp

you mean when using a recipe as a step being able to change the servings count ? That makes a lot of sense, i did not think about this when adding the feature

vabene1111 avatar Sep 21 '21 13:09 vabene1111

you mean when using a recipe as a step being able to change the servings count ?

Exactly that!

tuetenk0pp avatar Sep 21 '21 18:09 tuetenk0pp

+1 for this, I'm working on a recipe right now where this would be killer.

JadElClemens avatar Oct 01 '21 23:10 JadElClemens

Not eure if this will make it into the next release (planned very soon) I am thinking about removing the step type system all together and just chgubg the layout based on the information available in a step. This would fix some other issues at the same time but require a little more effort

But this is definitely high priority

vabene1111 avatar Oct 02 '21 07:10 vabene1111

ok so currently the sub recipe changes its scaling together with the parent recipe. This makes sense for a lot of use cases but it does not work if you have a base recipe that uses a different scaling metric than the parent recipe. When reworking the recipe editor

  • add a field to the step model recipe_servings to denote the base servings of the sub recipe
  • on the frontend prepoulate and pre scale sub recipe to desired servings and scale sub recipe liniearly with parent recipe
  • optionally allow to change the servings of the sub recipe individually

vabene1111 avatar Jan 18 '22 17:01 vabene1111

Sorry for the feature duplication. Any plan for implementing?

fabads avatar May 15 '24 10:05 fabads