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

Quickscan for shopping does not respect standard purchase unit #791

Closed jacotec closed 6 months ago

jacotec commented 8 months ago

Example: Beer Standard unit and consume unit: Bottle Purchase Unit: Box

image

A box is 20 bottles:

image

When I scan a bottle with the quick scan button for consume, one bottle is substracted from stock as expected.

When I purchase a box and scan a bottle in quick purchase mode (long press on the scan button), only one bottle is stocked up - not 20 bottles. If the standard purchase unit is a box, quick scan should add 20 bottles in this case.

dominiczedler commented 6 months ago

Maybe your stored barcode has the amount of 1 in the server for this product? Another thing can be the quantity unit stored in the barcode of the bottle. I can't reproduce this issue yet, so I think this has something to do with the barcode properties in your server (which I can't see now, maybe you can give screenshots and I will reopen the issue if necessary).