# Auto Assign Stock at the time of DO Generation

**YouTube:** [How to Enable Auto Stock Allocation When Generating Delivery Orders?](https://www.youtube.com/watch?v=fW3ROkksxEY)

## How to Enable Auto Stock Allocation When Generating Delivery Orders?

This tutorial explains how to enable and use the **Auto Assign Stock** feature during the generation of a Delivery Order (DO).

***

### **Enable the Auto Assign Stock Feature:**

* Launch **Logic Admin**.
* Navigate to **Global Settings**.
* Go to the **Purchase Settings** tab.
* Locate and enable the option labeled: **"Auto Assign Stock at the Time of DO Generation"**.

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

* Click **Save**.
* Restart the software to apply the changes.

***

### **Generate the Delivery Order with Auto Stock Assignment:**

* Open the **Generate Delivery Note** window.
* Select the **Sales Order** from the list for which you want to generate the Delivery Order.
* Click **Generate Order**.
* Select the generated entry.
* You will notice that the **Auto Assigned Stock** option is now enabled.

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

* Once the Delivery Order is saved, the stock is automatically assigned—eliminating the need for manual stock assignment and making the order ready for dispatch.

***

### **Verify Assigned Stock:**

* Open the **Assigned Stock to Delivery Order** window.
* Select the relevant **Delivery Order**.

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

* You will see that:
  * The stock has already been assigned.
  * The **Lot/Carton Number** has been generated automatically.

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

* Click **Save** to proceed with the dispatch process.


---

# Agent Instructions: 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:

```
GET https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/user-access/logic-global-admin/purchase/auto-assign-stock-at-the-time-of-do-generation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
