barcodebuddy icon indicating copy to clipboard operation
barcodebuddy copied to clipboard

Barcode Buddy not using Quick Consume Amount from Grocy

Open TinkerTob opened this issue 1 year ago • 0 comments

Hi,

I apologize if this is just user error, but I wasn't able to find an answer. I'm not quite sure myself wether this is a cry for help, a bug report or a feature request.

On the product page in grocy, I can set a quick consume amount. Which works perfectly when using the grocy web interface. But I can't get it to work with barcode buddy, and I just can't tell if I'm doing something wrong of if it's just not supported.

Example Scenario:

Flour. Purchase amount is set to kg, stock amount is set to g, conversion factor 1:1000 (obviously). When I use it, it's usually in multiples of 100 g. So I have set the quick consume to 100 g and just hit it multiple times. Which works perfectly fine in the grocy web interface. For Barcode Buddy, I have labeled the flour jar with a datamatrix representation of the grocycode, which I scan in BBUDDY-C mode.

Expected Behaviour:

Scanning the grocycode removes 100 g, just like clicking the quick consume button in the web interface.

Actual Behaviour:

Scanning in BBUDDY-C mode consumes either just 1 g (when not using grocys QU) or 1000 g. And as I'm using a grocycode instead of scanning some EAN, I can't set quantity conversions via BBUDDY-Q-.

Conclusion

If I can make Barcode Buddy use the Quick Consume Amount, please tell me how! Otherwise, I would very much appreciate if this was added. I can see three possible implementations:

  1. Make it the standard for the BBUDDY-C barcode (which could break existing workflows)
  2. Introduce a new setting "Consume Quick Consume amount save in grocy"
  3. Introduce a new Mode: "Quick Consume" (BBUDDY-QC)

I would pretty much prefer Nr 3, as this would break nothing and add a lot of flexibility.

Thank you!

TinkerTob avatar May 20 '23 16:05 TinkerTob