> 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-version-release-notes/may-2025/inventory/assembling-lot-number-configuration-manual-and-expression.md).

# Assembling: LOT Number Configuration – Manual and Expression

A new update in Logic ERP introduces the ability to generate LOT numbers automatically using either the Manual method or Expression-based logic.

This option allows users to generate LOT numbers using either the **Manual** method or **Expression**-based in logic ERP. It guides you through enabling the feature and implementing it effectively within the assembling processes.

**Step 1: Configuring LOT Number Generation:**

* Navigate to Inventory > Assembling and then
* Click on Configuration.
* Locate the option **“LOT Number As”.**
* Choose the appropriate option: either **Manual** or **Expression**, based on your requirement.

<figure><img src="https://www.logicerp.com/tutorials/wp-content/uploads/2025/05/Configuration-Setup-Assembling-1.png" alt=""><figcaption></figcaption></figure>

**Step 2:** Let’s now implement both options one by one.

When you select Manual, the software gives you the option to enter the LOT number manually in the Assembling window.

<figure><img src="https://www.logicerp.com/tutorials/wp-content/uploads/2025/05/Manual-LOT-Number.png" alt=""><figcaption></figcaption></figure>

When you select **Expression**, the software provides some predefined fields that you can use to automatically generate the LOT number.

<figure><img src="https://www.logicerp.com/tutorials/wp-content/uploads/2025/05/Expression-LOT-Number.png" alt=""><figcaption></figcaption></figure>

Let’s create a sale bill to check this functionality.

<figure><img src="https://www.logicerp.com/tutorials/wp-content/uploads/2025/05/Expression-LOT-Number-in-billing.png" alt=""><figcaption></figcaption></figure>


---

# 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-version-release-notes/may-2025/inventory/assembling-lot-number-configuration-manual-and-expression.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.
