# Retrieve C.D From Sale Order

**YouTube Link:** [How to Retrieve Discounts Entered in the Sale Order in Sale Bill?](https://www.youtube.com/watch?v=9TmIMMtmWaU)

## How to Retrieve Discounts Entered in the Sale Order in Sale Bill?

### Introduction

In this Tutorial, we demonstrate how to retrieve cash discounts (CD) from sales orders when generating sales bills in Logic ERP. This automated process ensures that discounts in your sales orders accurately reflect in your sales bills.

### Steps to Retrieve CD Discounts

1. **Generate a Sales Order**\
   Begin by creating a Sales Order. Define the 10 % cash discount for any item under the CD percentage section.&#x20;
2. **Configure Sales Voucher**
   * Navigate to the "Sales Voucher Configuration".
   * Select the Relevant Billing Series.
   * Enable the option "Retrieve C.D From Sale Order".

<figure><img src="/files/j222Kd1JpU0ntlbckYIZ" alt=""><figcaption><p>Let's enable this feature and observe its impact</p></figcaption></figure>

* **Save Changes:** Ensure all changes are saved to update the settings.
* **Retrieve the Sales Order**
  * Verify the feature by generating a Sales Bill.
  * Ensure the Customer has an existing sales order.
  * Click on "Retrieve Order"

<figure><img src="/files/vT9pauPvBWnGI4R3oAsS" alt=""><figcaption><p>CD has been automatically retrieved</p></figcaption></figure>

* **Optimize Your Billing Process**\
  Upon retrieval, the cash discount will be automatically updated based on the sales order. This feature optimizes billing by ensuring a seamless and accurate transaction, automatically applying applicable discounts from the sales order to the sales bill.

By following these steps, you can effortlessly incorporate the CD (cash discounts) from your sales orders into your sales bills, enhancing accuracy and efficiency in your billing 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/setups/configurations/sale-voucher-configuration/other-settings-1/retrieve-c.d-from-sale-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.
