> 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/assembling/assembling-configuration/lot-number-as.md).

# Lot Number As

**YouTube:** [How to Configure Automatic Lot Number Generation in Assembling?](https://www.youtube.com/watch?v=-MOJpB6F3Hs)

## How to Configure Automatic Lot Number Generation in Assembling?

In this tutorial, we will learn how to configure the **Lot Number As** option in the Assembling Module of Logic ERP. This feature allows you to control how Lot Numbers are generated during Assembly transactions by choosing between automatic generation, manual entry, or a custom expression.

***

### Objective of This Feature

* Configure flexible Lot Number generation.
* Support automatic or manual Lot Number assignment.
* Generate customized Lot Numbers using expressions.
* Improve product traceability and inventory management.
* Standardize Lot Number formats across assembly transactions.

***

### Access to Assembling Configuration

* Go to the **Assembling Module**.
* Open the **Configuration** window.
* Locate the option labeled as:

> **"Lot Number As"**

This option provides three parameters:

* **Lot Number**
* **Manual**
* **Expression**

Let's understand each option one by one.

***

### Option 1: Lot Number (Default)

**Configuration**

* Select **Lot Number** in **Lot No As**.

**Observe the Functionality**

* Create a **New Assembly** entry.
* Select the Finished Item.
* Enter the required details.

**Observation**

* Before saving the document, the **Lot Number** field remains blank.

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

* Now, save the Assembly document.
* Open the same document again using **Modify Issue**.

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

**Result**

The system automatically generates a Lot Number after the document is saved.

***

### Option 2: Manual

**Configuration**

* Return to the Configuration window.
* Select **Manual**.

**Observe the Functionality**

* Create a new Assembly entry.
* Select the Finished Item.
* Enter the required details.

**Observation**

* The **Lot Number** field becomes editable.
* Enter the desired Lot Number manually.

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

* After verifying the details, save the document.

**Result**

The manually entered Lot Number is saved and assigned to the Assembly document.

***

### Option 3: Expression

**Configuration**

* Return to the Configuration window.
* Select **Expression**.

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

* Click **Lot Expression** to open the Expression Builder.

#### **Define the Expression**

* Create the required Lot Number expression using the available fields.
* For example: **Issue Date-01**

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

* Save the expression and the configuration.

**Observe the Functionality**

* Create a new Assembly document.
* Select the Finished Item.
* Complete the required details.

**Observation**

* Before saving, the **Lot Number** field remains blank.

<figure><img src="/files/7wWeILaNxvVz6mU57sD7" alt=""><figcaption></figcaption></figure>

* Now save the document.
* Reopen the saved document using **Modify Issue**.

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

**Result**

The system automatically generates the Lot Number according to the configured expression.

**For example:**

* **Issue Date:** 30-Jul-2026
* **Generated Lot Number:** 30072026-01

The Lot Number is created exactly as defined in the configured Lot Expression.

***

### Key Benefits

* Supports automatic and manual Lot Number generation.
* Allows customized Lot Number formats using expressions.
* Improves inventory traceability.
* Ensures consistent Lot Numbering across assembly transactions.
* Reduces manual effort and data entry errors.

***

### Best Practice Tips

* Use **Lot Number** for automatic system-generated numbering.
* Use **Manual** when Lot Numbers are assigned externally.
* Use **Expression** to create standardized Lot Numbers based on business rules.
* Design expressions that include meaningful fields such as dates, document numbers, or item information for better traceability.

***

### Final Outcome

The **Lot Number As** feature in the Assembling Module provides flexible Lot Number generation based on your business requirements. Whether you choose **automatic generation**, **manual entry**, or a **custom expression**, Logic ERP ensures accurate, consistent, and traceable Lot Number management for Assembly 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/assembling/assembling-configuration/lot-number-as.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.
