> 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/prompt-sale-history-for-each-item-in-sale-return.md). Agents can also search and read this documentation through its [MCP server](https://kb.logicerp.com/~gitbook/mcp).

# Prompt Sale History for each Item in Sale Return

**YouTube:** [How to Globally Enable Item wise Sale History Prompt in Sale Return?](https://www.youtube.com/watch?v=hsnJ4CfKHqA)

## How to Globally Enable Item wise Sale History Prompt in Sale Return?

This tutorial explains how to activate the feature that prompts the **original sale history** for each item during a **Sale Return**. This function helps ensure accurate return processing by referencing previous sales.

***

### **Enable the Feature in Logic Admin**

* Open **Logic Admin**.
* Navigate to **Global Settings**.
* Go to the **Sale Return Settings** section.
* Locate and enable the option:\
  **“Prompt Sale History for each Item in Sale Return”**.
  * *Note: This setting must be applied via Logic Admin to enforce it across all billing series and branches.*

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FthX86y639E0HCJBCeinb%2FAdmin%20Setup%20-%20Prompt%20Sale%20History%20for%20each%20Item%20in%20Sale%20Return.png?alt=media&amp;token=b461e2c6-4f0c-4c31-949e-220979e3194b" alt=""><figcaption></figcaption></figure>

* Click **Save** to apply the changes.
* Restart the software to activate the feature.

***

**Optional: Enable at Series Level (If needed)**

* You can also enable this option individually in **Sale Voucher Configuration** for specific billing series if not applying globally.

***

### **Perform a Sale Return Entry**

* Open the **Sale Return Voucher** screen.
* Select an **item and its corresponding lot number**.
* A **Sale History** window will automatically appear.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FQQ5UzUmcMDZLDI7aM0Ho%2FPromot%20for%20history.png?alt=media&amp;token=267ee722-8bc1-4182-b402-5d9196d4a3de" alt=""><figcaption></figcaption></figure>

* The window displays all **past sale bills** for the selected item.
* Select the specific bill against which the **return is to be processed**.
* This ensures the return is linked to the correct original transaction.

***

### **Benefits**

* Ensures **accuracy** in returns.
* Minimizes **manual errors**.
* Improves **traceability** of returned items.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/user-access/logic-global-admin/sale-return/prompt-sale-history-for-each-item-in-sale-return.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
