Back to Blog
Corporate Solutions

How to Set Up a Barcode System: Labels, Scanners, Stock

How do you set up a barcode system? Item records, the barcode table, label printers, scanners and barcode software, choosing between EAN-13, Code 128 and 2D codes, check digits, case barcodes and the setup steps in one place.

Barkod SistemiBarkod ProgramıStok TakibiKurumsal Yazılım

Setting up a barcode system takes four parts: one item record per product, the barcode numbers linked to that record, a printer for the labels and barcode software that turns every scan into a stock movement. The short answer: a barcode is not the information itself, it is the key to the item record. Price, stock and product name live in the database, not on the label. That is why a barcode system setup starts with cleaning the product list, not with buying scanners.

What does a barcode system actually solve?

Every product code typed by hand is a chance to get it wrong. Someone picks the wrong one of two similar codes, drops a digit or confuses a case with a single unit. Scanning closes all three gaps at once, because staff no longer need to recognize the product, they only scan it. The real gain is accuracy rather than speed: the product received at the dock, counted on the shelf and shipped to the customer all point to the same record. A barcode will not repair a messy product list, though. If one product sits in two item records, scanning only multiplies that duplicate faster.

A barcode does not carry data, it points to data. The number on the label never changes, while the database answers with the price, the stock and the name on every scan.

What you need for a barcode system

  • Item record: one record and one stock code for every product and every variant (color, size, pack).
  • Barcode table: a product can have several barcodes. The unit barcode posts 1, the case barcode posts as many units as the case holds.
  • Label printer: thermal printers print on label rolls. Direct thermal labels fade with heat and light over time, so long lived labels need thermal transfer printing with a ribbon.
  • Barcode scanner: most USB scanners behave like a keyboard, typing the code and sending Enter. Warehouses use handheld terminals, and a phone camera is enough at low volume.
  • Barcode software: resolves the scanned code to a product, rejects unknown barcodes and stores who scanned what, when and in which transaction.
  • Labeling rule: where on the product the label goes, at which step and by whom is written down. Nothing reaches the shelf without a label.

Which barcode type should you choose?

If your product will be sold in shops, retail chains or on marketplaces, the choice is not yours: you need a 13 digit EAN-13 number (the 12 digit UPC-A in North America), built on a company prefix licensed from your national GS1 organization. Codes used only inside your own warehouse and production do not require a membership. For internal codes such as shelf locations, work orders or semi finished goods, Code 128 is the common pick because it carries letters and digits together. When more data has to fit into a small area, a 2D code (QR or Data Matrix) is used. If the case label must also deliver the batch and the expiry date along with the product number, GS1-128 comes into play. We covered the traceability side of that structure in our article on lot tracking software.

How do you validate a barcode number?

The last digit of an EAN-13 number is a check digit calculated from the first 12. If the scanner misreads a damaged label, or a digit slips while the number is typed by hand, the calculation fails. The software should run this check first and then look the code up in the barcode table. A barcode that is not in the table must not quietly create a new product: the scan is rejected and handed to someone with permission to define it. In the GS1 system, prefixes 20 to 29 are reserved for use inside a company, so the 13 digit internal codes you generate yourself should stay in that range. The example below validates the check digit and turns a scan into a product and a quantity:

type BarcodeRow = { code: string; sku: string; unitsPerScan: number };
type ScanResult =
  | { ok: true; sku: string; quantity: number }
  | { ok: false; reason: 'invalid_check_digit' | 'unknown_barcode' };

function ean13CheckDigit(first12: string): number {
  const sum = [...first12].reduce(
    (total, char, index) => total + Number(char) * (index % 2 === 0 ? 1 : 3),
    0,
  );
  return (10 - (sum % 10)) % 10;
}

function isValidEan13(code: string): boolean {
  if (!/^\d{13}$/.test(code)) return false;
  return ean13CheckDigit(code.slice(0, 12)) === Number(code[12]);
}

function resolveScan(
  code: string,
  table: Map<string, BarcodeRow>,
): ScanResult {
  if (/^\d{13}$/.test(code) && !isValidEan13(code)) {
    return { ok: false, reason: 'invalid_check_digit' };
  }
  const row = table.get(code);
  if (!row) return { ok: false, reason: 'unknown_barcode' };
  return { ok: true, sku: row.sku, quantity: row.unitsPerScan };
}

The unitsPerScan field in the example solves the case problem: the unit barcode of a product posts 1, the barcode of a case of twelve posts 12, and both land on the same item record. How the scanned quantity affects stock, whether it is a receipt, an issue or a transfer, comes from the transaction that is open at that moment, not from the barcode. For a business with one warehouse and few movements, this much runs fine in inventory software. Once you need shelf locations, pick sequences and handheld terminal screens, you are in warehouse management system territory.

Barcode system setup, step by step

  • Clean the product list: merge duplicate records and give every variant its own stock code.
  • Decide where barcodes come from: reuse the barcode on products that arrive labeled by the supplier and generate internal codes for the rest.
  • Design the label template: barcode, human readable number and product name. Test every template with a real scanner after printing.
  • Choose the scan points: receiving, shelf, shipping and stock count, each with a defined transaction behind it.
  • Run a pilot with one product group and watch the number of unreadable labels and unknown barcodes.
  • Do the opening stock count by scanning, and from that day on put manual code entry behind a permission.

Common mistakes when setting up a barcode system

The most common mistake is using the barcode as the product code. When the supplier changes or the packaging is redesigned, the barcode changes while the item record must stay the same, which is why barcodes live in their own table. The second mistake is trying to embed the price or the product name in the barcode: when the price changes, every label goes in the bin. The third is label quality. A label that cannot be read in cold storage, on an oily surface or on a sunlit shelf pushes staff back to typing, and the system is quietly abandoned. Finally, scanning that is not mandatory does not happen: if the shipping screen can be closed without scanning the products, nobody scans on a busy day.

Packaged barcode software or custom development?

For a business with a single shop or warehouse and standard buying and selling, packaged barcode software is usually enough. Custom development makes sense when the barcode has to follow a rule that is specific to your operation: scanning work orders in production, customer specific label formats, reading batch and serial numbers in the same scan, real time stock sync with the ERP or online store you already run. Printers, scanners and handheld terminals are a separate budget line in both cases, so ask up front whether they are part of the software quote.

Conclusion

A barcode system is built on a clean product list, a barcode table linked to products, durable labels and software that rejects unknown codes. The scanner is the easiest link in that chain. For a barcode setup that fits your warehouse, your production and the systems you already use, see our corporate solutions page or describe your process and request a quote.

Let's Build Your Project

Get a free consultation for your website, mobile app, or corporate software project.

Get a Free QuoteExplore our Corporate Solutions service