Track Items with barcodes ​

A barcode is a code printed as a pattern of lines, which a scanner reads. You can store the barcodes of each Item in ERPNext and then add Items to transactions by scanning them.

You need no integration to use a barcode scanner. A USB or Bluetooth scanner works like a keyboard: it types the code where the cursor is.

Add barcodes to an Item ​

  1. Open the Item and go to the Inventory tab.
  2. In the Barcodes table, add a row:
    • Barcode: the code, for example 8901234567890.
    • Barcode Type: optional, for example EAN, UPC-A, EAN-13, CODE-39, or GTIN. ERPNext checks that the code is valid for the type you select.
    • UOM: optional. See the next section.
  3. Save the Item.

An Item can have several barcodes. A barcode can belong to only one Item.

Common types are EAN, a 13-digit code used around the world, and UPC-A, a 12-digit code used mainly in the USA and Canada.

Barcodes table in the Item form

Add a barcode for each unit of measure ​

The same Item can have one barcode for a single unit and another for a box. Add one row for each, and set the UOM on each row. When you scan the box barcode, ERPNext sets the box unit on the transaction row. The unit must be in the UOM tab of the Item. See Set up units of measure.

Item barcodes with a different UOM on each row

Scan Items into a transaction ​

These documents have a Scan Barcode field: Quotation, Sales Order, Delivery Note, Sales Invoice, POS Invoice, Material Request, Purchase Order, Purchase Receipt, Purchase Invoice, Stock Entry, Stock Reconciliation, and Pick List.

  1. Put the cursor in the Scan Barcode field.
  2. Scan the barcode.

ERPNext finds the Item and adds a row, or adds one to the quantity of the existing row. The Scan Barcode field also accepts a serial number, a batch number, or a warehouse name.

On a phone or tablet, the Scan Barcode field has a button that opens the device camera, so you can scan without a separate scanner.

Scanning a barcode adds the Item to a transaction

Troubleshooting ​

MessageCauseFix
Barcode ... already used in Item ...Another Item has the same barcode.Remove the barcode from one of the Items.
Barcode ... is not a valid ... codeThe code does not match the Barcode Type, for example the check digit is wrong.Correct the code, or clear the Barcode Type.