barcodebuddy icon indicating copy to clipboard operation
barcodebuddy copied to clipboard

Special Codes Do Not Switch Modes After First Scan

Open rabab2k opened this issue 7 months ago • 1 comments

Describe the bug I am using a handheld scanner to move products in Grocy via Barcode Buddy. When using special codes (such as "Purchase", "Consume", etc.), the mode cannot be changed after scanning a special code for the first time. If I scan a new special code, it is displayed in Barcode Buddy, but is either ignored or shown as an unknown product – all subsequently scanned products are still added to the originally selected list (e.g., Purchase).

Steps to reproduce

  1. Scan a special code (e.g., "Purchase").
  2. Scan some products, which are correctly added to the shopping list.
  3. Scan another special code (e.g., "Consume").
  4. Scan additional products.

Expected behavior After scanning a new special code, Barcode Buddy should correctly switch the mode and assign the following products to the new mode (e.g., Consume). So, in my example, there should then only be one item present.

Actual behavior The mode remains set to the first selected one (e.g., Purchase), even if a new special code is scanned. All scanned products continue to be added to this list, until the app is restarted.

Additional information

  • Barcode Buddy version: 1.8.1.8
  • Grocy version: 4.5.0
  • Device: Android smartphone, as Docker container and in Home Assistant
  • Hand scanner model: unknown
  • Operating system: Ubuntu
  • Reproducibility: Always

Restarting the app sometimes helps, but is not a practical solution. All updates are installed.


Thank you very much for your support!

Image

Image

rabab2k avatar May 29 '25 13:05 rabab2k

Seems like your scanner does not have the same charset as your host.

eopo avatar Nov 13 '25 16:11 eopo