> 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/order-processing/assign-stock-to-delivery-orders/assign-stock-to-delivery-orders-configuration/do-not-allow-auto-assign-unassign-lots.md).

# Do Not Allow Auto-Assign/Unassign Lots

**YouTube:** [How to Disable Automatic Stock Assignment and Unassignment in Delivery Orders?](https://youtu.be/pT0aSUHy_Rw)

## How to Disable Automatic Stock Assignment and Unassignment in Delivery Orders?

In this tutorial, we’ll learn how to use the **“Do Not Allow Auto-Assign/Unassign Lots”** feature in the **Assigned Stock to Delivery Order** window of Logic ERP. This feature allows users to restrict automatic stock assignment and lot unassignment, ensuring that stock is assigned through manual item scanning when required.

**Let’s get started!**

***

### Open the Assigned Stock to Delivery Order Window

* Navigate to the **Order Processing** module.
* Open the **Assigned Stock to Delivery Order** window.
* By default, the **Auto-Assign Stock** and **Unassign All Stock** options are available for use.
* Let’s first understand how the automatic stock assignment process works.

**We’ll begin by Implementing the auto-assign functionality with the default settings.**

***

### Verify Auto-Assign Stock Functionality

* Search for and select the required delivery order.
* Enter the packing box number.
* Click **Auto-Assign Stock**.
* The system automatically scans and assigns the available quantities of all items to the delivery order.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F36Wg227SWRI4GCVNauPm%2FDefault.png?alt=media&amp;token=3c2ea4bd-406c-44f1-9628-02400658c6e3" alt=""><figcaption></figcaption></figure>

**This confirms that stock can be assigned automatically when the restriction is not enabled.**

***

### Let's Enable the Restriction

* Open the configuration window.
* Under **Other Options**
* Locate and enable the option labeled as:

> **“Do Not Allow Auto-Assign/Unassign Lots”**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FBwn1krXhePHzwMdAEn52%2FDisable.png?alt=media&amp;token=16224173-2fd4-4f40-8d0e-d7318bc142e3" alt=""><figcaption></figcaption></figure>

* Save the configuration changes.

**The restriction is now enabled. Let’s return to the delivery order window and check its effect.**

***

### Verify the Restricted Options

* Return to the **Assigned Stock to Delivery Order** window.
* Observe the **Auto-Assign Stock** and **Unassign All Stock** options.
* Both options are now disabled and cannot be used.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FgYn8bysSYTrGDzlW1TRa%2FEnabled.png?alt=media&amp;token=91ae45d4-d41f-4b60-940a-b0a9363ce18a" alt=""><figcaption></figcaption></figure>

* Stock must be assigned by manually scanning each item code and assigning the corresponding stock to the delivery order.

**This confirms that enabling the restriction prevents automatic stock assignment and lot unassignment, requiring users to handle stock assignment manually.**

***

### Conclusion / Result

* **By Default:** Users can automatically assign available stock and use the unassign option.
* **Feature Enabled:** The **Auto-Assign Stock** and **Unassign All Stock** options are disabled.
* **Manual Stock Assignment:** Users must scan item codes individually to assign stock to the delivery order.
* **Key Benefit:** This feature provides greater control over stock assignment by preventing automatic assignment and unassignment when manual verification is required.

**By enabling “Do Not Allow Auto-Assign/Unassign Lots,” businesses can ensure that stock assignment is handled manually according to their delivery order processing requirements.**


---

# 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/order-processing/assign-stock-to-delivery-orders/assign-stock-to-delivery-orders-configuration/do-not-allow-auto-assign-unassign-lots.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.
