TandoorRecipes / recipes

Application for managing recipes, planning meals, building shopping lists and much much more!
https://docs.tandoor.dev
Other
5.54k stars 581 forks source link

Better stock tracking #2661

Open wolflu05 opened 1 year ago

wolflu05 commented 1 year ago

Is your feature request related to a problem? Please describe.

Currently its only possible to mark certain ingredients as "in stock", but you cannot see how much flour you have, when your milk expires or if your frozen pizza is stored in the kitchen or basement freezer.

Describe the solution you'd like

Add the following resources:

  1. Stock locations - ideally this is a tree which can represent sub-... locations, maybe django-mptt can be used here
  2. Food item - represents one specific food item from a specific brand and with a specific amount which can be linked to an 1. ingredient and later maybe also a supermarket . That way varying data like GTIN, nutritional values, ... can be stored individually
  3. Stock Item - which links a Stock Location, Food item and an amount together and represents the actual stock of this food item at a specific location

That way we can have the following possibilities:

Please let me know what you think about this approach and if you think the concept with the food items which can be linked to ingredients is to complex for tandoor and think that linking ingredients directly to stock items is better, but then we loose the information about the GTIN and specific nutrition values, ....

Describe alternatives you've considered

Using external specific stock tracking solutions like inventree.

Additional context

No response

vabene1111 commented 1 year ago

Hi, thanks for he issue and concept provided. Stock keeping is something tandoor might include in the future. I have not yet looked into technical concepts but they will be oriented by stock keeping systems for logistics purposes.

Regardless of the implementation there will be no stock keeping until more pressing issues of usability and performance are fixed so I recommend anyone from refraining to open any PRs on this. Still anyone should feel free to post technical concepts if they are familiar with existing stock or logistics systems and want to work out a proper concept.