> 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/user-access/logic-global-admin/sale-return/pick-rate-from-last-sale-bill-in-case-of-sale-return.md).

# Pick Rate From Last Sale Bill in case of Sale Return

**YouTube:** [How to Enable Rate Pickup from Last Sale Bill in Sale Return?](https://www.youtube.com/watch?v=IIIIm6gPux8)

## How to Enable Rate Pickup from Last Sale Bill in Sale Return?

In this tutorial, we’ll show you how to **automatically pick the rate from the last sale bill** when processing a **sale return** in **Logic ERP**, ensuring pricing consistency and reducing manual entry errors.

***

### **Enable the Feature in Global Settings**

* Open **Logic Admin** and navigate to **Global Settings**.
* Go to the **Sale Return Settings** section.
* Locate and enable the option labeled as: **“Pick Rate from Last Sale Bill in Case of Sale Return”**

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

> **Note:**\
> This option is also available in the **Sale Bill Configuration but** must be configured **individually for each billing series**.\
> Enabling it via **Global Settings** applies it **across all series and branches**.

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

***

### **Implement the Functionality**

1. **Create a Sale Bill**
   * Add an item and set the sale price to **₹2000**.
   * Save the bill.
2. **Create Another Sale Bill for the Same Item**
   * This time, change the item rate to **₹1800**.
   * Save the bill.
3. **Enter a Sale Return for the Same Item**
   * Proceed to create a **Sale Return Entry**.
   * The system **automatically picks the rate of ₹1800**, taken from the **most recent sale bill**.

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

***

### **Conclusion**

This setting helps ensure **accurate and consistent pricing** during sale returns by automatically retrieving the **latest sale rate**, saving time and minimizing manual errors.


---

# 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/user-access/logic-global-admin/sale-return/pick-rate-from-last-sale-bill-in-case-of-sale-return.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.
