> 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).

# 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="/files/ouMJ4OJdlGfPMMCYKUxi" 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="/files/ke0obNVKjSDnjp5a7KZJ" 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 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/prompt-in-sale-return-if-lot-item-sale-is-more-than-defined-months-days.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.
