# Create Sales Bill from Sales Order

**YouTube:** [How to Create a Sales Bill by Retrieving a Sales Order?](https://www.youtube.com/watch?v=wQB1WSCxJnc)

## How to Create a Sales Bill by Retrieving a Sales Order?

In this tutorial, we will learn how to **generate a sales bill by retrieving one or multiple sales orders in Logic ERP**, along with **field mapping between sales orders and sales bills** for accurate data transfer.

***

### Reviewing Existing Sales Orders

Before creating a sales bill, let’s review the sales orders already created.

* Navigate to the **Order Processing Module**
* Open **Sales Order**
* Right-click on **Modify**

<figure><img src="/files/5zAkrjF5vGVYJ7OrazVT" alt=""><figcaption></figcaption></figure>

* View the list of existing sales orders
* Open and review the orders one by one

***

### Retrieving Sales Orders into Sales Bill

Now, let’s generate a sales bill using existing sales orders.

* Open the **Sales Bill** window
* Select the **Customer / Party**

***System Behavior:***\
A reminder message appears indicating that **pending sales orders exist** for the selected party.

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

***

#### Retrieve Sales Orders

* In the **Item Details** section, click **Retrieve Order**

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

* Select **Sales Order** from the list
* All pending sales orders for the selected customer will be displayed

You can retrieve **multiple sales orders into a single sales bill**.

* Select the required sales orders (e.g., first two orders)

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

* Click **OK**

***

#### Select Items from Sales Orders

* All items from the selected sales orders are displayed
* Choose the items you want to include in the sales bill

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

* Click **OK**
* The selected sales orders are successfully retrieved into the sales bill.

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

* Click **Save** to finalize the sales bill

***

### Mapping Sales Order Fields to Sales Bill Fields

Logic ERP allows you to automatically map sales order fields to sales bill fields during retrieval.

#### Configure Field Mapping

* Go to **Sales Voucher Configuration**
* Select the relevant **Sales Bill Series**
* Navigate to **Other Settings – 1**
* Open **Defaults – 2**
* Click on **Map Fields**

<figure><img src="/files/2RMzetjDqlF8Sg415g6f" alt=""><figcaption></figcaption></figure>

***

#### Define Field Mapping

* Map **Party Order Number → Order Number**
* Map **CD Percent → CD Percent**
* Map **TD Percent → TD Percent**

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

***Tip:***\
Press the **Space Bar** in the sales bill field column to select the corresponding sales order field.

* Click **Save** to apply the configuration

***

### Creating a Sales Order with Mapped Fields

* Open the **Sales Order** window
* Enter:
  * Party Order Number
  * Party Name
* Enter item details

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

* Apply:
  * **CD Percent**
  * **TD Percent**

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

* Save the sales order

***

### Retrieving the Sales Order into Sales Bill (Verification)

* Open **Sales Bill**
* Select the relevant **Party**
* Click **Retrieve Order**
* Select the required sales order and items

***Verification Results:***

* **CD Percent** and **TD Percent** are automatically reflected in the sales bill

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

* **Party Order Number** appears in the **Order Number** field under **Other Details**

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

* Click **Save** to finalize the sales bill

***

### Tracking Pending Sales Orders

To monitor order fulfillment:

* Open **Pending Sales Order Report**
* Review:
  * Ordered Quantity
  * Dispatched Quantity
  * Pending / Balance Quantity

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

* Track item-wise and order-wise pending status

***

### Reviewing Sales Transactions

For complete sales analysis:

* Open **Sales Register – Detailed Report**
* View:
  * Sales bill details
  * Item-wise sales
  * Party-wise transactions

<figure><img src="/files/6IcCeKNsB94kjEnBSNd0" alt=""><figcaption></figcaption></figure>

* Use this report for accurate sales tracking and reconciliation

***

### Conclusion

This completes the **Sales Bill generation by retrieving Sales Orders in Logic ERP**, including **multi-order retrieval, field mapping, order tracking, and detailed reporting**, ensuring smooth and accurate sales processing.


---

# 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/billing/sale-bill/create-sales-bill-from-sales-order.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.
