> 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-in-sale-return-if-lot-item-sale-is-more-than-defined-months-days.md). Agents can also search and read this documentation through its [MCP server](https://kb.logicerp.com/~gitbook/mcp).

# Prompt in Sale Return if Lot/Item Sale is More Than Defined Months/Days

**YouTube:** [How to Enable Prompt in Sale Return for Items Sold Before a Specified Period?](https://www.youtube.com/watch?v=KeT9gjIRFbs)

## How to Enable Prompt in Sale Return for Items Sold Before a Specified Period?

This tutorial explains how to enable and configure a setting that prompts during a sale return if the lot/item was sold more than a specified time ago.

***

### **Enable the Sale Return Prompt Setting**

* Open **Logic Admin**.
* Go to **Global Settings**.
* Navigate to the **Sale Return** settings tab.
* Locate and enable the option: **"Prompt in Sale Return if Lot/Item Sale is More Than Defined Months/Days"**.
* Define the time period:
  * Enter the number of **months** or **days** after which the prompt should appear.
  * (Example: Set to **15 days** for a 15-day limit).

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FLITCTepdFQIGYPmPMt6d%2FAdmin%20Setup-%20Prompt%20in%20Sale%20Return%20if%20new.png?alt=media&amp;token=620cfee3-0147-4225-8dcd-624ccf011225" alt=""><figcaption></figcaption></figure>

* Click **Save**.
* Restart the software to apply the new settings.

***

### **Create a Sale Return Voucher**

* Open the **Sale Return** module and begin creating a voucher.
* Enter the item details.
* When you **select the lot**, the system will:
  * Display a **prompt** if the item was sold more than the defined time ago.
  * Show the **last transaction details** of the lot.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FKohM6N7Fvd9xCt2aGni8%2FPrompt%20in%20Sale%20Return.png?alt=media&amp;token=4d914fa4-7e20-45f6-81ac-abe23d45440c" alt=""><figcaption></figcaption></figure>

***

This feature helps users track and verify the age of returned items, ensuring better control and validation during the sale return process.


---

# 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-in-sale-return-if-lot-item-sale-is-more-than-defined-months-days.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.
