aleene / FoodViewer

An app to view and edit Open Food Fact products
Apache License 2.0
10 stars 5 forks source link

Daily values #1051

Closed aleene closed 3 years ago

aleene commented 3 years ago

I started with the possibility to have the percentage of daily values shown. But I do not remember where I ended up.

Presentation: can only be shown when a portion is available. If so the fraction/percentage can be calculated and shown. But also only if we know the daily need for that nutrient. Otherise nothing must be shown.

Edit: input as percentages, store as value per portion.

aleene commented 3 years ago

The daily values can not be written to OFF, they are interpreted as gram (per serving or pe 100g).

aleene commented 3 years ago

The daily values are converted to gram per serving and then written. Thus circumventing the OFF limitation.