# Lot Code Pre-Fix

**YouTube:** [How to Use Lot Code Prefix in Purchase ?](https://www.youtube.com/watch?v=RN78CczguSE)

## How to Use Lot Code Prefix in Purchase?

In this tutorial, we’ll explore how to configure and use **Lot Code Prefixes** in Logic ERP to accurately scan items during **purchase** and **sales** transactions.

***

### Set Lot Code Prefix in Barcode Label Printing

* Navigate to the Reports/Queries\Item Reports and then click on **Barcode Labels Printing** window
* Open the **Configuration** section.
* Locate the **Lot Code Prefix** list.
  * **Select the desired prefix** (e.g., “S”, “T”, etc.).

<figure><img src="/files/fSsxz4oT5AQC5sqQYbH0" alt=""><figcaption><p>As mentioned above, follow the given steps and select the appropriate option from the dropdown as per your requirement.</p></figcaption></figure>

* Click **Save**.
* Once configured, preview the barcode label:

  > The **Lot Code** will now appear with the selected **prefix**.

<figure><img src="/files/lh1cQsSg9QXnix5GEO1z" alt=""><figcaption><p>As you can see in the picture, it is being displayed with the Lot Code Prefix.</p></figcaption></figure>

***

### Configure Prefix in Purchase Settings

* Navigate to the **Purchase Voucher Configuration**.
* Click on "**Other Settings 3"** tab.
* Locate the Feature labeled **Lot Code Prefix** option.

<figure><img src="/files/bIN48vCj8LdsCtiXAIXZ" alt=""><figcaption><p>As mentioned earlier, the same prefix that we set in the barcode needs to be set in the Purchase Configuration as well.</p></figcaption></figure>

* **Choose the same prefix** as defined in barcode label printing.
* Click **Save**.

***

### Implement the Configuration with a Purchase Entry

* Create a **new Purchase Voucher**.
* Scan the barcode containing the **lot code with prefix**.

<figure><img src="/files/ihZunEsPWNdD1o1H0z1W" alt=""><figcaption><p><strong>"As shown in the image, searching with the LOT Code prefix automatically loads the product."</strong></p></figcaption></figure>

* Complete the purchase transaction.
* The system accurately identifies the lot code using the prefix.

> **Use Case Tip:**\
> This feature is especially useful in **supermarkets** or **retail chains** that create **custom packs** with **internal barcodes**.

***

### Set Prefix in Sales Configuration

* Open **Sales Voucher Configuration**.
* Navigate to the **appropriate billing series**.

<figure><img src="/files/Gbdm3oxIigdDiXacxde9" alt=""><figcaption><p>As mentioned earlier, the same prefix that we set in the barcode needs to be set in the Sale Configuration as well.</p></figcaption></figure>

* Select the **same lot code prefix** used in both barcode printing and purchase configuration.

<figure><img src="/files/HrEmpyQNUXfRYIMZo3oV" alt=""><figcaption><p><strong>"As shown in the image, searching with the LOT Code prefix automatically loads the product."</strong></p></figcaption></figure>

* Click **Save**.

***

### Final Outcome

* With consistent configuration across barcode printing, purchase, and sales:

  > **Item Codes** and **Lot Codes** can now be scanned seamlessly.\
  > The system correctly identifies which barcode refers to the **item** and which one to the **lot**, ensuring accurate billing and inventory tracking.


---

# Agent Instructions: 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:

```
GET https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/setups/configurations/purchase-voucher-configurations/other-settings-3/lot-code-pre-fix.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
