> 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/setups/setup-items/setup-items-multiple-pack-sizes/configuration-multiple-packs-sizes/configuration-options-1/auto-no.-length.md).

# Auto No. Length

**YouTube:** [How to Configure Auto Number Length for Formula - Based Item Names?](https://www.youtube.com/watch?v=dNMJpWqQbuo)

## How to Configure Auto Number Length for Formula - Based Item Names?

In this tutorial, we’ll demonstrate how to **automatically generate item names** in Logic ERP using the **Auto Number Length** setting.

***

### **Accessing Configuration Settings**

* **Navigate to:** Setups/Setup Items and then click on **"Setup Items Multiple Packs/Sizes".**
* Click on the Configuration.
* Under the Configuration Options - 1 tab.
* Locate the option labeled as

> **“Auto No. Length”**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F6tgTRhyJNU0hQsGJuxEk%2FConfiguration.png?alt=media&amp;token=b0d032ca-ab4f-40ab-9fdc-e223de1dc751" alt=""><figcaption></figcaption></figure>

***

### Configure Auto Number Length

* Set the **Auto No. Length** to **3**.
* Define the **Item Name Generation** using **“Item Name Formula + 1”**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FfcnsSv4KowqEnrV557TQ%2FItem%20Name%20Formula%20%2B%201.png?alt=media&amp;token=25ac923e-dc1c-49b6-a0b3-6420f9bb6e45" alt=""><figcaption></figcaption></figure>

This ensures that all auto-generated numbers follow a **uniform 3-digit format** (e.g., 001, 002, 003).

***

### Review the Item Name Formula

* The formula here is designed to generate item names using:
  * **Category** + **Fabric** + **3-digit Auto Increment Number**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FusWER3czKxGtD6yI43Hs%2FItem%20Name%20Formula%20CMD.png?alt=media&amp;token=cf88593b-87ff-4217-bc49-3b5d8a89640e" alt=""><figcaption></figcaption></figure>

* The **sequence will continue** only for items created under the same category and fabric.
* If a different category or fabric is selected, the **sequence resets** and starts from **001** again.

***

### Create New Items

* Create a **new item** with a defined category and fabric.
  * The system generates the item name automatically based on the formula.
  * The number appears in a **3-digit sequence** with leading zeros.
* Save the item.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Fpo7LEPkLQM8U4YAwpR0L%2FItem%20Name%20001.png?alt=media&amp;token=717ffa95-f77f-47b2-a349-af86b3784057" alt=""><figcaption></figcaption></figure>

* Create another item with the **same category and fabric**.
  * The auto number increments sequentially (e.g., 002, 003, etc.).

***

### Key Takeaway

* **Auto No. Length** ensures numbering consistency in item names.
* **Item Name Formula** provides flexibility by combining fields (e.g., category, fabric) with auto-increment numbers.
* The sequence **resets** when a different category/fabric is selected.

This setup helps maintain **structured, consistent, and error-free item names** in Logic ERP.


---

# 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/setups/setup-items/setup-items-multiple-pack-sizes/configuration-multiple-packs-sizes/configuration-options-1/auto-no.-length.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.
