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

Wrong unit used for purchase for the first time #209

Open
rguilloteau opened this issue Feb 26, 2023 · 3 comments
Open

Wrong unit used for purchase for the first time #209

rguilloteau opened this issue Feb 26, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@rguilloteau
Copy link

rguilloteau commented Feb 26, 2023

Hi!
I tried to add pasta with BarcodeBuddy but I got an issue. When I try to purchase a "Paquet" (my purchase unit), it buys 1g and 500g.

Just below, you can see the different units used
image

And there is the log from BarcodeBuddy: 2023-02-26 12:59:54: Product found. Adding 1 Gramme of Penne No default best before date set! [8076802085738]

When I purchase from the grocy interface, 500g are added to the stock.
I would like to know if someone else got this issue.

EDIT: I found the parameter to activate

@rguilloteau rguilloteau changed the title Wrong unit used for purchase Wrong unit used for purchase for the first time Feb 26, 2023
@rguilloteau
Copy link
Author

Just found out, the conversion is not taking into account when a item is bought for the first time

2023-02-26 14:37:17: Product found. Adding 500 Gramme of Penne 500g [8076802085738]. In Stock: 501
2023-02-26 14:36:51: Adding 1 Gramme of Penne 500g
2023-02-26 14:36:51: Associated barcode 8076802085738 with Penne 500g
2023-02-26 14:36:17: Unknown barcode looked up, found name: Penne [8076802085738]

@rguilloteau rguilloteau reopened this Feb 26, 2023
@Forceu Forceu added the bug Something isn't working label Feb 26, 2023
@Forceu
Copy link
Owner

Forceu commented Feb 26, 2023

Thanks, that is indeed a bug and will be fixed with the next release.

@Royal2000H
Copy link

It's slightly different with the current version of Grocy but still needs to be fixed.

If in Grocy: you have a "pack" and a pack = 6 pieces, and quantity unit (QU) Stock = "piece" and QU Purchase = "pack"

Barcode Buddy is not respecting QU purchase at all.

@Forceu Are you still planning to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants