# 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FY08NbIGfIOYx4QCBjuAk%2FSale%20Order%20-%20View.png?alt=media&#x26;token=97caeb95-b4c1-462c-b2d2-bded64b3dfae" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FzvvwLK7HGw1YpLZZPYxY%2FPrompt%20for%20Pending%20SO.png?alt=media&#x26;token=f5e42c69-5fce-4b84-892b-04cdc04d9d17" alt=""><figcaption></figcaption></figure>

***

#### Retrieve Sales Orders

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

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F4jKT8vQ3e9iFestSLqkG%2FRetrive%20SO.png?alt=media&#x26;token=2a035a63-cee0-4ede-b5e1-c86ca2d44f1e" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F79KyhVyPJnnMwXYquN5H%2FChoose%20Sale%20Order.png?alt=media&#x26;token=c40b2ed3-ffb2-4a77-bbcc-c350ff79c9a5" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FsPDRYUoDxbLIH1xKBuKe%2FChoose%20Items.png?alt=media&#x26;token=5715c0ec-2346-46da-9b25-869b26721569" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FuW52YAKpDXiLxTsNVOWQ%2FSO%20Retrieved.png?alt=media&#x26;token=f08f8e50-64cb-4390-ab3b-2d58619ebabe" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FzIxI2JTreci2DmfNHqNZ%2FMap%20SO.png?alt=media&#x26;token=fd70c04f-11bd-4e6a-959d-9a2fc346dd88" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FlhM6Ijmn8waqbC5kmvHF%2FMap%20Fields.png?alt=media&#x26;token=3a8a6766-0ad0-4cfa-a557-341150755e47" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FajHFEfNjUiOSo21YbF3O%2FParty%20Order%20Number.png?alt=media&#x26;token=d805524d-e139-4a65-b534-bf804b4a468a" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FN2W7mp5niz5cNWEAu7Ph%2FSO%20with%20CD%26TD.png?alt=media&#x26;token=6a18dff9-8004-40ce-918c-8b0e5046da07" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FHaTMmugdTD4tDnQmxFs3%2FRetrived%20CD%26TD.png?alt=media&#x26;token=03a90ae7-6b7f-4109-b808-6c7f742cdac7" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FqtiSwTugEoWQqciogXva%2FRetrieved%20-%20Order%20Number.png?alt=media&#x26;token=8c56ac30-baf0-40d4-a098-0a999a52cddf" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FgiDZTrvsaI9StHqKOIoL%2FReport.png?alt=media&#x26;token=5c03eb9f-2fa5-4bf4-994b-8ce6eb3442a2" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FkdvvUEwhW06MbW5ACL2q%2FReport%202.png?alt=media&#x26;token=80522923-70f6-4770-b097-f12c84dd3451" 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.
