Open tbuerki opened 9 years ago
How should a digital assistant device measuring the Litre unit? because of this problem, currently there is only g "allowed" to define.
At the moment, we'll only use the unit field to format the output. Data is always saved/measured/calculated as g. But when we show the output to the user, we'll translate it into the unit that is noted in the "unit" field. For now it's for all liquids a 1g:1ml conversion, so essentially the figures are divided by 100 and we show "dl" instead of "g"
For each ingredient we also need to save the "unit". The unit field indicates what type of unit we will use when an amount of the ingredient is shown to the user. At the moment, I see the following two values: "litre" and "gramm". Whenever an amount of an ingredient is shown (e.g. in the shopping list or on the recipe), the unit should be adapted according to the "unit" field, so that we show water in dl and rice in g.