grocy-android
grocy-android copied to clipboard
Purchase unit to stock unit conversions don't work with 4.0 server
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.
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.
Can you please post the resolved quantity unit conversions from the master product page of your product?
This would help solving the issue...
@dominiczedler Maybe my issue #791 is similar and gives you the needed information?