> 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/inventory/stock-transfer-godown-wise/stock-transfer-godown-wise-configuration/lot-code-pre-fix.md).

# Lot Code Pre-Fix

**YouTube:** [How to Set a Lot Code Prefix for Scanning in Godown Wise - Stock Transfers?](https://www.youtube.com/watch?v=L2C3Ry_SeA8)

## How to Set a Lot Code Prefix for Scanning in Godown Wise - Stock Transfers?

In this tutorial, we will learn **how to define and use a Lot Code Pre-Fix while scanning lot codes in godown-wise stock transfer entries in Logic ERP**.

***

### Open Configuration Settings

* Open the **Configuration** window.
* Navigate to **Other Settings**.
* Locate the option labeled as "**Lot Code Pre-Fix"** field.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F8jsLjKZzGyB5afXR8CKJ%2FCon-1.png?alt=media&amp;token=6183337b-98e2-49b9-b75f-7d81d2f85541" alt=""><figcaption></figcaption></figure>

* Select or enter the required **Lot Code Pre-Fix**
  * *(for example: “S”)*.
* This option allows you to define a **specific prefix** that will be used while scanning lot codes.

***

### Configure Item Code Scanning Mode

* In the same configuration screen, find the **Item Code As** option.
* Set **Item Code As = Lot Code**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FCDQ5JN1NVqe7j5g6FuoG%2FCon-2.png?alt=media&amp;token=5bd5e444-8435-4cd3-94b3-517499493aa9" alt=""><figcaption></figcaption></figure>

> This step is mandatory. Without setting *Item Code As* to **Lot Code**, the system will not recognize lot codes during scanning.

* Save the configuration.

***

### Use Lot Code Pre-Fix During Stock Transfer

* Create a **new godown-wise stock transfer voucher**.
* Select **Godown From** and **Godown To**.
* Scan or enter the **lot code along with the defined prefix**\
  *(example: S12345)*.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FBDMbyrO6crVrE9qZ2hMv%2FCode%20Searching.png?alt=media&amp;token=9f63690c-9dd5-4a9e-8e5a-1ec3e69c2159" alt=""><figcaption></figcaption></figure>

**Result:**

* The system **automatically identifies the lot**.
* The **associated item is transacted** without manual selection.

***

### Key Benefit

Using a Lot Code Pre-Fix:

* Speeds up lot scanning
* Reduces manual selection errors
* Ensures accurate and quick stock transfer processing

***

This is how you can **define and use a Lot Code Pre-Fix** to streamline **godown-wise stock transfer entries** in Logic ERP.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/inventory/stock-transfer-godown-wise/stock-transfer-godown-wise-configuration/lot-code-pre-fix.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
