> 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/billing/packing-slip/packing-slip-configuration/generate-do-from-sales-order.md).

# Generate DO from Sales Order

**YouTube:** [How to Configure Sales Order-Based Generation in Packing Slip–Delivery Orders?](https://youtu.be/m6lg4mlNPNU)

## How to Configure Sales Order- Based Generation in Packing Slip–Delivery Orders?

In this tutorial, we will learn how to configure the **Generate DO from Sales Order** feature in Packing Slip Entry. This feature allows users to retrieve items directly from a Sales Order, allocate stock, and generate the Delivery Order efficiently.

***

### Objective of This Feature

* Generate Delivery Orders directly from Sales Orders
* Retrieve Sales Order items into Packing Slip
* Allocate stock quickly and efficiently
* Support barcode-based item allocation
* Automatically display allocated lot details

***

### Access to the Packing Slip Configuration

* Open the **Configuration Window**.
* Navigate to the **Other Options 2** section.
* Locate and enable the option labeled as:

> **"Generate DO from Sales Order"**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F41tO2d6hvArLL6p6UEnS%2FCNF.png?alt=media&amp;token=fad30d25-9a83-4f72-a48c-9c428d626db1" alt=""><figcaption></figcaption></figure>

* Save the configuration changes.

***

### Create a New Packing Slip

* Open the **Packing Slip Entry** window.
* Initiate a **New Packing Slip** entry.
* After enabling the configuration, the **Sales Order selection** option becomes available in the Packing Slip Entry.

**Retrieve Sales Order**

* Select the required **Customer**.
* Search for and select the required **Sales Order**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Fq5FMh3rdhj3vaEMiALT1%2FSO%20enabled.png?alt=media&amp;token=2b23277b-3388-4410-8ca6-0aec198e467b" alt=""><figcaption></figcaption></figure>

**Result**

The selected Sales Order is automatically retrieved into the Packing Slip.

***

### Allocate Items

* Navigate to the **Item Details** section.
* Here, all items from the selected Sales Order will be displayed.

#### You can allocate the required quantity in two ways:

#### **Barcode Scanning**

* Place the cursor in the **Item Code** field.
* Scan the item barcode.
* Allocate the required quantity.

<div><figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F6IumO0PRBVVnW6tTdnpI%2F1.png?alt=media&amp;token=ec9f06f5-5405-492b-bd93-fc07898d36ae" alt=""><figcaption></figcaption></figure> <figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FW8KplByd3sbanqoZFbrc%2F2.png?alt=media&amp;token=68acf743-4cd2-4c2f-bdbb-ee1db69de9ab" alt=""><figcaption></figcaption></figure></div>

#### **Auto Allocate Stock**

* Click on the **Auto Allocate Stock** option.
* The system automatically allocates the available stock for all items in a single step.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FAkhkV11oCjAtjJpJfp2L%2FaUTO.png?alt=media&amp;token=decdcfeb-8273-45f2-a220-24c003472f1a" alt=""><figcaption></figcaption></figure>

***

### Review Lot Details

Once the stock is allocated:

* The corresponding **Lot Details** are automatically displayed in the grid below.
* Review the allocated lots and quantities.
* Verify the allocation before saving the Packing Slip.

***

### Key Benefits

* **Faster DO Generation:** Generate Delivery Orders directly from Sales Orders.
* **Easy Order Retrieval:** Retrieve all required items from the selected Sales Order.
* **Quick Stock Allocation:** Allocate stock manually or automatically.
* **Barcode Support:** Simplify item-wise quantity allocation through scanning.
* **Better Lot Tracking:** Automatically view the lot details against allocated stock.

***

### Final Outcome

After enabling **Generate DO from Sales Order**, users can retrieve Sales Orders directly into Packing Slip Entry, allocate the required stock through barcode scanning or **Auto Allocate Stock**, and review the corresponding lot details before completing the transaction.


---

# 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/billing/packing-slip/packing-slip-configuration/generate-do-from-sales-order.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.
