Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Consume specific stock item by barcode #2448

Open
Royal2000H opened this issue Jan 21, 2024 · 6 comments
Open

Feature Request: Consume specific stock item by barcode #2448

Royal2000H opened this issue Jan 21, 2024 · 6 comments

Comments

@Royal2000H
Copy link

Grocy currently allows you to add multiple barcodes for 1 product and each barcode can have a note.

It would be a nice feature if, when consuming, one can select "specific stock item" and it automatically choose the stock item related to that specific barcode.

So if I add 5 barcodes for "Item A" and purchase one of each. My stock inventory will shows one of each. If I consume, currently Grocy does not care about which barcode was scanned for consume. I can manually select during consume but even then it doesn't choose the specific barcode by default.

The alternative at this time is to have separate products for each barcode and then set a parent product. I am hoping to avoid that for this use case.

@berrnd
Copy link
Member

berrnd commented Jan 21, 2024

So if I add 5 barcodes for "Item A" and purchase one of each. My stock inventory will shows one of each

If all those 5 stock items have the same due date/note/and so on, it will produce 1 stock entry with an amount, not 5 with an amount of 1 each. Tracking the used barcode per stock entry would extend the splitting/combining happening there to also consider (and first record) the used barcode per stock entry.

 

The alternative at this time is to have separate products for each barcode

The alternative provided by Grocy right now is to use (stock entry) Grocycodes. When scanned, they do exactly what you think of - demo:

firefox_2024-01-21_09-13-26.mp4

@Royal2000H
Copy link
Author

Thank you for your response.

The barcodes I'm referring to do have different notes so I do see separate stock entries. But then does not consume in that way.

If Grocycodes have that functionality then I guess the request is to extend the possibility to (product) barcodes because of cases where printing a Grocycode isn't ideal.

@berrnd
Copy link
Member

berrnd commented Jan 21, 2024

I guess the request is to extend the possibility to (product) barcodes because of cases where printing a Grocycode isn't ideal.

Technically it would be about tracking the used barcode per stock entry when adding a product to stock (not happening so far, a Grocycode doesn't need a product's barcode), adjusting the stock entry combining/splitting accordingly (as just said above), then extending the consume handling for that.

@Royal2000H

This comment was marked as resolved.

@berrnd

This comment was marked as resolved.

@Royal2000H

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants