> For the complete documentation index, see [llms.txt](https://kb.logicerp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/reports-queries/item-report/barcode-labels-printing/barcode-labels-printing-configuration/lot-code-pre-fix.md).

# Lot Code Pre-Fix

**YouTube:** [How to Add a Lot Code Prefix in Barcode Label Printing?](https://youtu.be/a6peMUMpaDE)

## How to Add a Lot Code Prefix in Barcode Label Printing?

In this tutorial, we will learn how to use the **"Lot Code Pre-Fix"** option in Logic ERP to add a predefined prefix to the lot code displayed on barcode labels.

***

### Objective of This Feature

* Add a predefined prefix to lot codes
* Customize lot code presentation on barcode labels
* Standardize barcode label identification
* Improve lot-wise tracking and identification

***

### Access to the Barcode Label Printing Configuration

* Navigate to the **Barcode Label Printing** module.
* Open the **Configuration** window.
* Locate the option labeled as:

> **"Lot Code Pre-Fix"**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Fuy6gH0xRZDrdySznDzGR%2FCNF.png?alt=media&amp;token=0399aa4f-8714-4233-975e-09c2b7bbaf5e" alt=""><figcaption></figcaption></figure>

***

### Observe the Default Behavior

* Keep the **Lot Code Pre-Fix** option unconfigured.
* Navigate to the barcode printing section for **Purchase Vouchers**.
* Select the required Purchase Voucher.
* Select the required item.
* Click on **Create**.
* The **Barcode Printing Design Selection** window will appear.
* Click **No** to open the barcode design window.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FemLmTH4NQHSP1QI3a5Vq%2FCreate.png?alt=media&amp;token=2d3a5403-53b5-4fa5-8b8c-d0e6bf6a0193" alt=""><figcaption></figcaption></figure>

* Click **Open**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FhLRHDjzT6CGBLT6nbKgL%2FOpen.png?alt=media&amp;token=d2846217-7626-4592-9a9b-b74e9dbed5e3" alt=""><figcaption></figcaption></figure>

* Select the required barcode design format.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FL5UmsFtHQ4Cpn2tlZsqW%2FLot%20Code%20-%20Without.png?alt=media&amp;token=ac599934-a5e4-4295-bdc8-c0e0244b8d44" alt=""><figcaption></figcaption></figure>

**Result**

As no lot code prefix has been configured, the barcode label displays the **original lot code without any prefix**.

***

### Configure the Lot Code Prefix

* Return to the **Barcode Label Printing Configuration**.
* Locate the **"Lot Code Pre-Fix"** option.
* Select the required prefix from the dropdown list.
* Save the configuration changes.

#### Verify the Updated Lot Code

* Return to the barcode label printing window.
* Select the same **Purchase Voucher**.
* Select the required item.
* Open the barcode design.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FcSXzYp0yq8iz7wL54Boo%2FPre-Fix.png?alt=media&amp;token=0dbc7b6d-88fa-4315-8b54-e75e0ebc0777" alt=""><figcaption></figcaption></figure>

**Result**

* The configured prefix is now automatically added to the lot code displayed on the barcode label.
* For example:&#x20;
  * **Original Lot Code:** `LOT001`
  * **With Prefix:** `PREFIX-LOT001`

***

### Key Benefits

* **Standardized Lot Codes:** Maintain a consistent lot code format across barcode labels.
* **Easy Identification:** Prefixes make lot codes easier to identify.
* **Better Tracking:** Simplifies lot-wise inventory tracking.
* **Flexible Configuration:** Select the required prefix according to business requirements.
* **Automatic Application:** The prefix is added automatically during barcode label printing.

***

### Important Note

The configured **Lot Code Pre-Fix** is reflected on the barcode label during printing. If no prefix is configured, the original lot code is displayed without modification.

***

### Final Outcome

By configuring the **"Lot Code Pre-Fix"** option, Logic ERP automatically adds the selected prefix to the lot code displayed on barcode labels, providing a standardized and easily identifiable lot code format.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/reports-queries/item-report/barcode-labels-printing/barcode-labels-printing-configuration/lot-code-pre-fix.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
