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
879 stars 85 forks source link

Purchase unit to stock unit conversions don't work with 4.0 server #785

Open dwildstr opened 1 year ago

dwildstr commented 1 year ago

Probably related to changes in the server noted in #644:

  • [x] The product option "Factor purchase to stock quantity unit" was removed
    • => Use normal product specific QU conversions instead, if needed
    • An existing "Factor purchase to stock quantity unit" was automatically migrated to a product specific QU conversion

The below is the result of an attempt to purchase a case of 12 eggs.

Screenshot_20230924-154637_Trebuchet

Note that "1 pack" (the default purchase unit) of eggs in the screenshot above is interpreted as "1 piece" (pieces being the default stock and consumption unit) of eggs. There had formerly been a "Factor purchase to stock quantity unit" conversion of 1 pack to 12 units, which was migrated to a QU conversion when the server was updated. When confirmed, the purchase is indeed entered into stock as a purchase of a single egg, not of 12 eggs.

This particular bug does not occur with the web front-end, as can be seen below.

image

dominiczedler commented 1 year ago

Can you please post the resolved quantity unit conversions from the master product page of your product?

dominiczedler commented 11 months ago

This would help solving the issue...

jacotec commented 11 months ago

@dominiczedler Maybe my issue #791 is similar and gives you the needed information?