grocy-android icon indicating copy to clipboard operation
grocy-android copied to clipboard

Selection of child products in purchase form

Open notEvil opened this issue 3 years ago • 1 comments

Hi,

a couple months ago I started using grocy and I like the app a lot! There is one thing that could make a big difference for me:

In the purchase form, show a selection of child products in case the product is a parent product. Maybe "< name >" where < and > are buttons that switch to the previous/next child product.

My preferred approach to grocy is as follows. First add a parent product with a certain unit (for instance litre) to the shopping list. The amount represents the need. In the grocery I pick products based on preference or availability and mark the parent product as done. At home I go through the shopping list again and "purchase" child products using the prefilled forms. The child products of a parent product are usually of the same brand in different sizes and are tracked in whole numbers. For me this is the most efficient way of using grocy and the only thing missing is the selection of child product in the prefilled purchase form.

This approach maybe unusual and I'm aware that parent product isn't a "core" feature in grocy (products aren't inherently hierarchical).

notEvil avatar Mar 21 '22 12:03 notEvil

Hey, I will look into it as soon as I can find time for it. :)

dominiczedler avatar Mar 22 '22 22:03 dominiczedler

I hope the now implemented solution works for you! You can test the latest nightly build in a few minutes if you want.

dominiczedler avatar Dec 25 '22 15:12 dominiczedler

Just installed nightly but couldn't figure out how to get there. What I've tried:

  1. disable own stock for parent product
  2. add parent product to shopping list
  3. from shopping list, purchase

opens the usual purchase form for the parent product.

notEvil avatar Dec 30 '22 14:12 notEvil

https://user-images.githubusercontent.com/27244574/210082901-005d3152-e598-4ca8-beaa-d7249211fb31.mp4

For me it's working, I don't know why your nightly doesn't do that...

dominiczedler avatar Dec 30 '22 14:12 dominiczedler

Thanks a lot! After a clean install it worked, don't know why it didn't before. Very much appreciated!!

notEvil avatar Dec 30 '22 15:12 notEvil