Sorry for the unclear explanation hehe
Let me try to be clearer
So, the plan is for 14 days, each day have 4 meals (breakfast, lunch, snack, dinner), each meal are made of 3 macros (Proteins, Carbs, Fats)
I had to divide the list of the ingredients in different tabs, in order to adapt the quantity based on the user (it’s a whole other story :p)
here is how it is done in my database:
Now, I would like to create a section with the grocery shopping list: the list of all ingredients and the quantity that needs to be bought for the 14 days (I actually would like to divide the list in 2, for the first 7 days and the last 7 days, but let’s go step by step :p)
As you can see on the previous screenshot, some ingredients are present in multiple recipes.
So I don’t know how to list all the ingredients from all recipes in one tab and show the global quantity is needed for the whole program.
For instance, on the previous screenshot you see that for 2 recipes you need buckwheat flour 200g
In the grocery shopping list, I expect to see listed “Buckwheat flour” once, with the quantity 400g.
Like the following:
Note: the same ingredients is repeated in different recipes in the same tab (same meal - breakfast, lunch etc…) but also in different meals (different tabs)
Please let me know if it is a little bit clearer.