You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At my last job, I would create a text file as I scanned barcodes for retail stuff.
I made this little python script that can take an inventory CSV, and then depending on the workflow, either increment the stock of an item for each time its barcode was scanned, or assume that we have scanned all instances of that product on hand, and set the value for the sum of the occurrences of a given barcode in the textfile.
Here's somepseudocode:
create empty dict "itemcounts"
open scan file
for each row in scan file, if the barcode is not in itemcounts' keys:
itemcounts[barcode] = 1
if barcode is in itemcounts' keys:
itemcounts[barcode] +=1
Then you have a list of quantities and barcodes!
From here it should be easy to add, or update quantities as appropriate
This would go great with one particular barcode scanner on amazon, which could remember all scanned barcodes, then when you scanned a control code, it would write the full list as HID output through a dongle. This made it easy to go back to my desk, after walking around the store with the scanner. So I just opened up a text document, dumped the scanned barcodes, ran my above script, and I had a small inventory file I could merge back into the POS.
This seems like an easy enough process to generalize, and apply here.
The text was updated successfully, but these errors were encountered:
I've thought about this and how to do it like take the scanner shopping with me and then let it just unload when I got home and have it run through it all. I think though in order accomplish this I need to figure out how to do this threaded and I am just not there yet with my skills.
At my last job, I would create a text file as I scanned barcodes for retail stuff.
I made this little python script that can take an inventory CSV, and then depending on the workflow, either increment the stock of an item for each time its barcode was scanned, or assume that we have scanned all instances of that product on hand, and set the value for the sum of the occurrences of a given barcode in the textfile.
Here's what that looks like, for me:
https://github.com/jamesbiederbeck/invmgr/blob/master/receivinghelper.py
Here's somepseudocode:
create empty dict "itemcounts"
open scan file
for each row in scan file, if the barcode is not in itemcounts' keys:
itemcounts[barcode] = 1
if barcode is in itemcounts' keys:
itemcounts[barcode] +=1
Then you have a list of quantities and barcodes!
From here it should be easy to add, or update quantities as appropriate
This would go great with one particular barcode scanner on amazon, which could remember all scanned barcodes, then when you scanned a control code, it would write the full list as HID output through a dongle. This made it easy to go back to my desk, after walking around the store with the scanner. So I just opened up a text document, dumped the scanned barcodes, ran my above script, and I had a small inventory file I could merge back into the POS.
This seems like an easy enough process to generalize, and apply here.
The text was updated successfully, but these errors were encountered: