> 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/setups/configurations/sale-voucher-configuration/other-settings-1/prompt-sale-history-for-each-item-in-sale-return..md).

# Prompt Sale History for Each Item in Sale Return.

**YouTube Link:** [How to Enforce Mandatory Selection of Sale Bill Against Sale Return Items ?](https://www.youtube.com/watch?v=lnqkVmnVtAQ)

## How to Enforce Mandatory Selection of Sale Bill Against Sale Return Items ?

In this tutorial, we'll guide you step-by-step to access and utilize sale history for each item when processing a sales return. This feature is designed to enhance your return management efficiency by providing accurate historical insights.

#### Steps to Activate

* Navigate to the "Sale Voucher Configurations".
* Select the "Relevant Billing Series".
* Enable the option: "Prompt sale history for each item in sale return".

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

* **Save Changes**: Ensure you save any changes made.

#### Demonstrating the Feature

* Ensure the Customer has already created a Sale Bill.
* Verify this feature by creating a new Sales Bill and adding an item along with the item you want to return or exchange.
* **To Enter Return Product**: Click on "Enter Return" and input the product details the customer wishes to return.
* After selecting an Item and Lot/Batch, a window displays a detailed sales history for both the customer and the item

<figure><img src="/files/57PB4F1oX1Il9pUeD9Yc" alt=""><figcaption><p>Here is the Preview to Select Document Number for Each Item in Sale Return.</p></figcaption></figure>

#### Completing the Return

* **Finalize**: Choose the document number corresponding to the sale, then click "OK" to process the return efficiently.

> **Tip**: This functionality simplifies the management and adjustment of returns effectively.


---

# 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/setups/configurations/sale-voucher-configuration/other-settings-1/prompt-sale-history-for-each-item-in-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.
