> 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FfWQQHuoC4BYUnwiU9JZu%2FDefine%20Lot%20Number.png?alt=media&amp;token=1594329f-1a8e-4e56-8bcb-d8a755fff2ef" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FMAiWHpQnBCvstupdxsEb%2FIT-SO%20Selection.png?alt=media&amp;token=b42b4949-e4cc-4fd1-b4c9-001c85d3c5d1" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FtUwvf80qgO7ZvmHMRQOd%2FItem%20Selection.png?alt=media&amp;token=bc051eed-4ca1-41fb-9563-a13271708d0c" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FW67xfE8S8TX5Hs6h69dI%2FGodown%20Selection.png?alt=media&amp;token=59fda5ae-6658-4173-9334-5db852117648" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FlPL71MqMTjb8YUwk1j1E%2FClick%20to%20Create%20New%20Lot.png?alt=media&amp;token=789f329a-140c-4f44-ac76-18a543962857" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FXwZB4T4LYbPuDrFstXUj%2FCreate%20Lot%20Number%20for%20Items%20Wo%20Lots.png?alt=media&amp;token=1a1d726a-0da2-4c2f-a401-5c8a57171921" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FhJ7bHTgkV9CsTj8uzmrW%2FPurchase%20Bill%20new.png?alt=media&amp;token=916c39c3-5c92-410a-b5de-0b8842563917" alt=""><figcaption></figcaption></figure>

***

### Additional Learning

To understand:

* [<mark style="color:green;">Creating lots for different business scenarios</mark>](https://kb.logicerp.com/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>](https://kb.logicerp.com/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 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/generate-lot-numbers.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.
