Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Allow the quantity unit for which the energy value applies #2252

Open
julien-picalausa opened this issue Jun 10, 2023 · 0 comments

Comments

@julien-picalausa
Copy link

Currently, the Energy value is entered relative to the unit specified as Quantity unit stock. It would be nice to be able to specify a different Quantity Unit that the energy value relates to.

I have been looking through recent commits and feature requests, but I could not see anything regarding this specific issue. Apologies if it has already been fixed or reported and I missed it.

Motivation

For most products (at least in my corner of the world), the label species the energy per 100g (and occasionally per 100ml)
At the same time, many of those are products that are generally consumed as a single unit and do not weigh 100g (like a piece of sandwich bread), and so it hardly makes sense to use hectogram as Quantity unit stock.
This means that the energy value entered into grocy has to be calculated from the energy value for 100g. While this is not difficult by any mean, the time needed to do the calculation does add up when entering many products.

It feels like it would be simpler to:

  • Set up the Quantity Unit stock to whatever is convenient.
  • Use the existing QU conversion feature a conversion to grams (for which the can be directly copied from the packaging).
  • Set the Quantity unit for the energy field to hectogram (this is the missing feature)
  • Copy the energy value directly from the packaging.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant