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

Do not consume multiple items. #797

Closed ybbus closed 7 months ago

ybbus commented 8 months ago

When I buy several identical items, I only scan one item and increase the number of items before saving them.

The problem with this is that, when I now scan such an item for consumption, multiple items are automatically removed, not just the one I scanned. Sometimes I don't even notice this, and then there is already a discrepancy between the database and the actual inventory.

Is this maybe only a configuration that I have to change?

patzly commented 7 months ago

Hi, you should try this with the web interface first. I think this is a server/database bug which would not be related to our app. Please update this issue if you know whether the web interface leads to the same result or not :)

ybbus commented 7 months ago

Hi.

It seems that when add add the item to the stock and set the amount of items to let's say 2. Then when scanning to consume this item it also is set to 2.

This is indeed the same behavior on the web interface.

But it does not make sense for me... Just so that I buy several of the same item, I still do not want to consume all of them at once. On the other hand I hopefully do not need to scan each item individually...

image

But yes, then it does not seem to be related to the android app.

dominiczedler commented 7 months ago

Yeah you need to get used to the stock concept of Grocy. Either scan every barcode of every stock entry you consume or purchase or enter/check the amount which is prefilled after scan. Or you can use grocy codes for stock entries like Bernd mentioned. (grocy/grocy#2388 for clarification to other people)