barcodebuddy icon indicating copy to clipboard operation
barcodebuddy copied to clipboard

New Barcode Quantity Bug

Open Epod opened this issue 2 years ago • 7 comments

Running the latest version of everything.

When adding a new barcode to an existing product, the quantity is not written to the barcode in Grocy - just blank everything.

The desired outcome would be writing the initial quantity to the barcode quantity in Grocy when first linking a new barcode.

Epod avatar Oct 27 '21 04:10 Epod

Additionally...

Once a quantity is eventually synced the number is the only thing that Barcode Buddy sees.

For example - I have a barcode that is set to "1 Package" which is configured in Grocy as multiple pieces. However Barcode Buddy only sees "1" and increases the quantity by 1 Piece, not 1 Package (which in this case equals 4 pieces)

Epod avatar Oct 27 '21 05:10 Epod

Thanks for the issue and please excuse the late reply! Do you have the option "Use Grocys quantity conversion" in the menu Settings enabled?

Forceu avatar Jan 07 '22 15:01 Forceu

I do have the same issue. The amount added to the shopping list is the same with the option enabled or disabled. The only difference is that either a new line in the "Saved Quantities" is added or not.

Maybe related to #123

andreheuer avatar Jan 07 '22 18:01 andreheuer

I think I found the issue.

See #178

andreheuer avatar Jan 15 '22 23:01 andreheuer

Issue is solved from my end.

andreheuer avatar Apr 21 '22 07:04 andreheuer

Apologies for resurrecting this topic. I'm trying to understand the solution above since Grocy only implements adding via stock units. Is the expectation that you only use the stock quantity when providing amounts to a barcode? This would effectively remove the function of creating qu conversions so I feel is not the correct situation.

I have tried scanning both with "use grocy quantity conversion" on and off and do not see a change in function.

When completing the same action using the grocy android app all functions as intended and the correct unit and conversion is added.

Alternatively, is this a byproduct of 3fed0d14ec86a20ea3c49bfbefb1f5b1b5348e65?

Thomas-McKenna avatar Nov 08 '23 17:11 Thomas-McKenna

Hi, thanks for the feedback. This behaviour is regarding a Grocy API change, which removed the quantity from the oveview of all products. That means additional API requests are required and a rewrite of code. Once I have time, I might send in a PR for the grocy project to make it easier for BarcodeBuddy. Unfortunately I don't have a lot of time at the moment, so I cannot give an ETA yet

Forceu avatar Nov 14 '23 12:11 Forceu