patzly / grocy-android

ERP beyond your fridge, now on your phone – An awesome companion app for grocy
https://patrickzedler.com/grocy/
GNU General Public License v3.0
830 stars 80 forks source link

Unit conversion on last price and consume wrong #807

Open stefan-muc opened 7 months ago

stefan-muc commented 7 months ago

I'm using Grocy 4.0.3 and Grocy Android 3.4.1

There seems to be something wrong with unit conversion for two cases (last price, conversion on consume)

This is how the product is shown in Grocy, everything correct here. image

This is how it is shown in Grocy Android: image Last price is wrong.

If I want to consume 1 can (by changing unit manually and then entering amount), it first calculates the unit conversion correctly: image

But as soon as I press the "consume" button, he re-calculates the unit conversion and tells me, I entered too much: image ... and doesn't let me consume the product. If I change the "Default quantity unit consume" to "Can", I immediately get the second screen.

Full product entry for reference: image