# Default Auto Lot Prefix

YouTube: [How to Set Default Auto lot prefixes in Purchase ?](https://www.youtube.com/watch?v=Qbwsy6WFZ3g)

## How to Set Default Auto lot prefixes in Purchase?

In this tutorial, we will explore a useful feature in **Logic ERP** that allows you to specify a **default auto lot prefix** in the **purchase configuration**. This feature ensures that lot numbers are automatically generated using a predefined prefix, streamlining inventory management.

### **Defining the Auto Lot Prefix**

* Navigate to the **Purchase Voucher Configuration**.
* Click on **Other Settings-1**.
* Then, click on **Other Settings** again.
* Navigate to the **Defaults-2** tab.
* Here, you will find the option labeled **Default Auto Lot Prefix**.
* Enter the desired **prefix** that should be used for generating lot numbers automatically.
* You can also define multiple prefixes by **separating them with a comma**.
* This setting works in combination with the **Auto Generate Lot Number** option.

<figure><img src="/files/01wohLVau0cXcG7mJyDq" alt=""><figcaption><p>This picture shows how you can define the LOT number prefix.</p></figcaption></figure>

### **Enabling Auto Lot Generation**

* When the **Auto Generate Lot Number** setting is enabled, the system will automatically create lot numbers using:
  * The predefined **prefix** from the configuration.
  * A system-generated **numerical sequence** that follows the prefix.

<figure><img src="/files/cts05MKTU8A8Q8IJL74f" alt=""><figcaption><p>This picture shows how you can "Auto-Generate the LOT Number".</p></figcaption></figure>

### **Creating a New Purchase Voucher**

1. Now, let’s create a **new purchase voucher** to observe how this setting works.
2. As soon as you enter the item details, the **Auto Generate Lot Number** window will appear.
3. You can see that the predefined **lot prefix** has been applied automatically.

<figure><img src="/files/li9UvSVWpdeGLOESJk3C" alt=""><figcaption><p>As you can see, the LOT number prefix has been generated.</p></figcaption></figure>

#### **Conclusion**

By enabling this feature, businesses can ensure **consistent and structured lot numbering**, reducing manual effort and improving 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-1/other-settings/default-2/default-auto-lot-prefix.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.
