Barcode Scanning for Inventory Management: Setup Guide, Including Pharmacy Retail Stock (2026)

Barcode scanning for inventory means every sale, delivery and stock count is recorded by scanning a code instead of typing it, so stock levels stay accurate as they change. For pharmacy retail stock, the best scanning setup is a 2D imager plus software that records batch and expiry when stock arrives.
This tutorial covers how barcode scanning works, the scanner types, a six-step setup, and a short answer for pharmacies — whether you run one store or ten.
What Is Barcode Scanning in Inventory Management?
Barcode scanning is the process of reading a printed barcode - a pattern of parallel lines (1D) or a grid of squares (2D/QR) - using a laser or camera-based scanner to retrieve the product information linked to that code. In an inventory context, every scan triggers an automatic update: a sale decrements stock, a goods receipt increments it, and a stocktake confirms it. The result is a real-time, accurate inventory ledger without manual data entry.
Before barcode scanning, inventory management meant counting by hand, writing on paper, and entering numbers into a spreadsheet - a process vulnerable to fatigue errors, transcription mistakes, and deliberate manipulation. Barcode scanning replaces this with a process that is faster, more accurate, and automatically time-stamped in your system.
Types of Barcodes Used in Inventory
| Barcode Type | Format | Common Use Cases | Max Data Capacity |
|---|---|---|---|
| EAN-13 | 1D - 13 digits | Retail products globally (manufactured goods) | 13 numeric digits |
| EAN-8 | 1D - 8 digits | Small retail packaging where space is limited | 8 numeric digits |
| UPC-A | 1D - 12 digits | US and Canadian retail products | 12 numeric digits |
| Code 128 | 1D - variable | Shipping, logistics, internal warehouse labels | 128 ASCII characters |
| Code 39 | 1D - variable | Healthcare, automotive, defense | Alphanumeric |
| QR Code | 2D - matrix | URL links, product authentication, mobile scans | Up to 4,296 characters |
| Data Matrix | 2D - matrix | Small components, pharmaceutical packaging | Up to 2,335 characters |
For most retail and warehouse inventory, EAN-13 (for manufactured products) and Code 128 or QR codes (for internal labels) cover the majority of use cases. If your products come from a manufacturer, they already have EAN or UPC barcodes printed on them. If you are labelling your own products (loose goods, food items, custom merchandise), you will print your own barcodes using your POS software's label printing module.
Types of Barcode Scanners
1. Handheld Laser Scanners
The most common scanner in retail environments. A laser line sweeps across the barcode and detects the reflected light pattern. Works best on 1D barcodes on flat surfaces. Connection options: USB cable (most reliable, no battery management) or Bluetooth wireless (for warehouse mobility). Recommended for: checkout counters, receiving docks, stockroom scanning.
2. 2D Imager Scanners
Camera-based scanners that read both 1D barcodes and 2D codes (QR, Data Matrix) by capturing an image. Slightly slower than laser on 1D codes but more versatile. Essential if you use QR codes for product authentication or mobile inventory. Recommended for: pharmacies (batch and serial number QR tracking), electronics retail, any operation using QR-based labels.
3. Wireless / Bluetooth Scanners
Same scanning technology as wired units but with a Bluetooth or RF connection to the base station. Allow staff to move freely across a warehouse floor or large retail floor. Recommended for: large store formats, warehouses, receiving areas where products cannot be brought to a fixed counter.
4. Mobile Computers (Handheld Terminals)
Ruggedized Android or Windows Mobile devices with built-in barcode scanners, touchscreens, and Wi-Fi. Run inventory apps directly on the device - scanning, receiving, and stocktake without returning to a fixed terminal. Recommended for: medium to large warehouses, supermarkets doing regular large-scale stocktakes, multi-floor retail operations.
5. Smartphone Scanning (via App)
Modern inventory apps can use a smartphone's camera as a scanner. Works for low-to-medium volume operations but slower and less reliable than a dedicated scanner. Best suited as a fallback or for occasional stocktakes in locations without dedicated hardware. Free to implement if staff already carry smartphones. Recommended for: small operations, ad hoc inventory checks, small stockrooms.
How Barcode Scanning Integrates with Inventory Management Software
A barcode scanner is just hardware. Its value comes from its connection to your inventory management or retail POS software. Here is how the integration works in practice:
At the Point of Sale (Sales Scanning)
When a cashier scans a product at checkout, the POS software looks up the barcode in its product database, retrieves the name and price, adds the item to the transaction, and decrements one unit from the inventory count - all in under a second. If the barcode is not found, the system prompts the cashier to add the product, preventing unknown items from being sold at an incorrect price.
At the Receiving Dock (Purchase Order Scanning)
When goods arrive from a supplier, a receiving staff member scans each item against the open purchase order. The system checks quantity received vs. quantity ordered, flags discrepancies (short shipments, wrong items, damaged goods), and updates the inventory count once confirmed. This process takes minutes instead of the hours required by manual receiving.
During Stocktaking (Physical Count Scanning)
Staff scan every item in a section or the whole store. The inventory system compares the scanned count to the book count (what the system expects) and highlights discrepancies. Shrinkage (theft, damage, or data entry error) shows up immediately. Scanning makes stocktakes far quicker than counting on paper, so you can do them more often.
For Stock Transfers
When moving stock between locations or to a customer delivery, scanning creates an auditable record of every item that left one location and arrived at another. Discrepancies in transit - lost items, wrong quantities - are caught immediately rather than discovered weeks later during a stocktake.
Step-by-Step: Setting Up Barcode Scanning in Your Inventory System
Step 1: Audit Your Current Barcodes
Walk your product range and identify how many items already have printed barcodes (most manufactured products do). For items without barcodes (loose goods, bulk items, custom products), you will need to create and print internal barcodes. Note: for internal barcodes, use Code 128 or QR format - these encode more information and are not subject to international numbering standards that require a paid GS1 registration.
Step 2: Register Products in Your Software
Every barcode must be linked to a product record in your inventory software. For manufactured goods, enter (or bulk import via CSV) the EAN/UPC barcode printed on the packaging. For your own products, your software will assign an internal barcode when you create the product record. Most inventory software includes a barcode import feature - if you have a product CSV from your supplier, the barcode column can be imported directly.
Step 3: Print Labels for Untagged Products
For products without manufacturer barcodes, print your own labels. You will need a thermal label printer and label stock in the right size for your products. Good inventory software includes a built-in label design tool where you can configure what appears on the label (barcode, product name, price, batch number) and print in bulk for new stock arrivals.
Step 4: Connect Your Scanner
For a USB scanner: plug it into your POS terminal or PC. Modern scanners are plug-and-play - no driver installation required. The scanner acts as a keyboard input device, sending the barcode string to whatever application is in focus. For a Bluetooth scanner: pair it with your device using the instructions in the manual (usually: press pairing button, scan the pairing barcode from the manual). Wireless scanners require programming with the base station - follow the setup guide in the box.
Step 5: Test Before Going Live
Before scanning in a live transaction, test with 20-30 products across different categories. Verify: the correct product name and price appear when scanned, inventory counts decrement correctly after a test sale, the scanner reads barcodes from multiple angles and distances, and any products with damaged or missing barcodes have a fallback (manual search by product name or SKU). Fix any products with incorrect or missing barcode registrations before your go-live date.
Step 6: Train Your Staff
Most staff pick up basic POS scanning quickly. Focus training on: how to handle barcodes that will not scan (damaged labels, scan angle issues), what to do when a product is not found in the system, and how to process returns using scanning. For receiving and stocktake procedures, allow 1-2 hours of supervised practice before staff work independently.
Common Barcode Scanning Problems and Solutions
| Problem | Likely Cause | Solution |
|---|---|---|
| Scanner beeps but nothing happens | Application not in focus; scanner sending to wrong window | Click on the search/barcode input field before scanning |
| Wrong product appears | Duplicate barcode in system; manufacturer reused a barcode | Remove duplicate; reassign barcode to correct product |
| Barcode not found | Product not registered; barcode mismatch (EAN vs internal) | Add product to system or correct barcode in product record |
| Scanner reads slowly or misreads | Worn scan glass; label damage; wrong scanner for barcode type | Clean scanner glass; reprint label; upgrade to 2D imager if using QR |
| Inventory counts incorrect after scanning | Partial scan during receiving; duplicate scans at checkout | Audit scan logs; check for double-scan prevention settings |
| Bluetooth scanner disconnects | Out of range; low battery; Wi-Fi interference on 2.4GHz | Charge scanner; reduce range; switch to 5GHz Wi-Fi channel |
Best Scanning for Pharmacy Retail Stock
Short answer: use a 2D imager scanner at the counter and at the receiving desk, and record the batch number and expiry date on every delivery as it is received. The scanner identifies the medicine; batch and expiry are what protect you from selling expired stock and let you act on a recall.
- Scanner: a 2D imager reads the 1D barcodes on most packs and the 2D DataMatrix or QR codes on others. A laser scanner reads 1D codes only.
- Receiving: scan each line of the delivery against the purchase order and enter batch and expiry there — this is where batch data enters your system.
- Pack sizes: a box, a strip and a single unit often carry different barcodes. Register each one against the same medicine so scanning a box adds the right number of units.
- Counter: sell by scan so stock falls as you sell, and check a near-expiry report every week.
- Counts: count shelves by scanning, not on paper, and post the differences.
How this works in EloERP: switch on batch and expiry tracking for the products that need it. Goods receipts capture batch number, expiry, rejected quantity and rack for each line, with a barcode scan column. Multi-UOM products carry a separate barcode per pack size and convert to base units. The POS finds items by name, SKU or barcode. The Batch & Expiry report shows expired and expiring-soon batches with the value at risk, using a near-expiry window you choose (1 to 3,650 days). Physical stock counts are done by scanning, and approved differences post to stock and the general ledger.
What it does not do: EloERP does not read the batch and expiry out of a GS1 DataMatrix scan. The scan identifies the product and pack size; batch and expiry are entered on the goods receipt. More on this in batch and expiry tracking in inventory.
Barcode Scanning for Specific Industries
Pharmacy Inventory Scanning
Pharmacies have demanding scanning needs: every medicine has to be tracked by batch number and expiry date, not just product name, and much pharmaceutical packaging carries 2D DataMatrix codes as well as 1D barcodes. See best scanning for pharmacy retail stock above, and our pharmacy POS software page.
Grocery and Supermarket Scanning
Grocery operations scan thousands of items per day at high speed. The priority is scanner durability and checkout speed - look for industrial-grade scanners and omnidirectional scanning heads that read barcodes regardless of orientation. Loose produce sold by weight needs a scale at the counter. For back-of-store receiving, mobile terminals allow goods to be scanned and received without bringing everything to a fixed counter. See also: grocery store POS systems.
Warehouse and Distribution
Warehouses use barcode scanning at every stage of the fulfilment cycle: inbound receiving, put-away to bin locations, pick-and-pack for outbound orders, and cycle counting. Bin location barcodes allow the software to track not just how many units you have, but exactly where each unit is in the warehouse. Serial number scanning ensures individual high-value items (electronics, equipment) can be tracked unit-by-unit through their entire lifecycle.
Benefits of Barcode Scanning
- More accurate stock - no typing, so no transcription errors in sales, receipts or counts
- Faster checkout - no price lookups or manual entry at the till
- Faster receiving - scan deliveries against the purchase order and see shortages straight away
- Earlier shrinkage detection - quicker stocktakes mean you can count more often
- Cleaner data - every movement time-stamped against the right product
Ready to Set Up Barcode-Enabled Inventory Management?
Barcode scanning is not a complex technology. The hardware is inexpensive, the setup is straightforward, and the benefits - faster checkout, accurate inventory, and reliable stocktakes - are immediate. The key is having an inventory management system that makes the most of each scan: updating stock in real time, matching against purchase orders, flagging discrepancies, and giving you clean data for business decisions.
EloERP Cloud's retail POS software and inventory management module are barcode-ready end to end: scan at the till, on purchase documents and goods receipts, during physical counts and for IMEI/serial entry. Variants and pack sizes each carry their own barcode, and you can print barcode labels in four sizes for items that arrive without one.
Schedule a free demo to see barcode scanning, inventory management and POS working together, or start the 15-day free trial and scan your own products.
Part of the EloERP Pharmacy Knowledge Hub
This article is part of our complete pharmacy management series. See the full guide: Pharmacy & Medicine Industry POS Software
Related resources: