supergeorg / Grocy-SwiftUI

A client for Grocy for macOS and iOS, written with SwiftUI
GNU General Public License v3.0
177 stars 17 forks source link

App is not respecting purchase units / calculations #186

Open jacotec opened 10 months ago

jacotec commented 10 months ago

Unfortunately the app is not taking into account when the consume unit is different from a purchase unit.

Example: Budweiser (Beer) is using "Bottle" as storage unit and consumption unit. Shopping unit is "box".

image

A box is 20 bottles of beer:

image

Current stock is 4 bottles:

image

Grocy has 17 bottles on the shopping list (Grocy web does wrong here, too - it should be one box for shopping):

image

But the IOS app is even worse, mentioning I should shop 17 boxes:

image

So it takes the correct purchase unit (boxes) but misses the conversion from stock units (bottle) to puchase units (boxes).

In addition, when I scan a bottle in shopping mode (quick scan) it also does not use the shopping unit (box --> 20 bottles), it just adds one bottle to the stock.