> 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/generate-lot-numbers.md).

# Generate Lot Numbers

**YouTube:** [How to Generate Lot/ Batch Numbers for Multiple Items Simultaneously?](https://www.youtube.com/watch?v=XxTt86JI5mU)

## How to Generate Lot/ Batch Numbers for Multiple Items Simultaneously?

In this tutorial, we will learn how to **generate Lot (Batch) Numbers** for selected items as well as for items that **do not currently have any lot assigned** in **Logic ERP**. This feature helps ensure accurate lot-wise inventory tracking across godowns.

***

### Open Generate Lot Numbers Module

* Navigate to the **Main Menu**
* Open the **Inventory** module
* Click on **Generate Lot Numbers**

***

### Understand Lot Creation Options

Lot numbers can be created in two ways:

* **Directly during Purchase Voucher entry**, or
* From the **Generate Lot Numbers** window (covered in this tutorial)

***

### Create Lot for Selected Items

* Enter the **Lot / Batch Number**

<figure><img src="/files/h0YuNO2YNnkIfUXG0qd1" alt=""><figcaption></figcaption></figure>

* Choose the creation type:
  * **For Specific Items**
  * **For Selected Sale Order Items**

<figure><img src="/files/A3PXxfqVZgUS5OIZoCwY" alt=""><figcaption></figcaption></figure>

* Select the required **Items** from the search list

<figure><img src="/files/9f45hhgL5riC2vrYBSgB" alt=""><figcaption></figcaption></figure>

* Choose the appropriate **Godown** from the dropdown

<figure><img src="/files/BK4EVD3Y4wKPt471CQNc" alt=""><figcaption></figcaption></figure>

> This ensures that stock is correctly maintained **lot-wise** in the selected godown.

* Click **Create Lot Numbers** to complete the process

<figure><img src="/files/hn0Wcs63UIlkiQE4s9Xx" alt=""><figcaption></figcaption></figure>

***

### Auto-Generate Lots for Items Without Lot

* Use the option **Generate Lot for Items Without Lot**
* This option:
  * Automatically creates lot numbers
  * Does **not require manual item or sale order selection**

<figure><img src="/files/CxgKEoO2EQiGMF0xNwcQ" alt=""><figcaption></figcaption></figure>

***

### Verify Lot Creation

* Open a **Purchase Voucher**
* Create a new purchase entry for the item whose lot was generated
* Observe that:
  * The **Lot Selection window** automatically displays the newly created lot
  * The lot is shown under the **specified Godown**

<figure><img src="/files/NpUXsxFE4CjwhBRQRgk4" alt=""><figcaption></figcaption></figure>

***

### Additional Learning

To understand:

* [<mark style="color:green;">Creating lots for different business scenarios</mark>](/logic-erp-learning-hub-tutorials-and-best-practices/setups/configurations/purchase-voucher-configurations/other-settings-2/lot-no-as.md#how-to-configure-lot-numbers-in-purchase-for-various-business-scenarios-in-logic-erp-software)
* [<mark style="color:green;">Setting a</mark> <mark style="color:green;"></mark><mark style="color:green;">**default Lot Number**</mark>](/logic-erp-learning-hub-tutorials-and-best-practices/setups/configurations/purchase-voucher-configurations/other-settings-2/default-lot-number.md#how-to-set-the-default-lot-number-in-purchase)

You can refer to the **tutorial links provided below** in the system.

***

### Conclusion

Generating lot numbers helps ensure:

* Accurate batch-wise stock tracking
* Better inventory control across godowns
* Seamless lot selection during purchase and sales transactions


---

# 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/inventory/generate-lot-numbers.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.
