# Allow Sale Return after Lot Expiry Date(days)

**YouTube:** [How to Restrict Entry of Expired Lots Older Than 'n' Days in Sale Return?](https://www.youtube.com/watch?v=Onnqv-3QRmQ)

## How to Restrict Entry of Expired Lots Older Than 'n' Days in Sale Return?

In this tutorial, we’ll explain how to configure **sale return permissions for expired lots** in **Logic ERP**, including how to define grace periods and enforce restrictions.

***

### **Enable Lot Expiry-Based Sale Return**

* Open **Logic Admin** and navigate to **Global Settings**.
* Go to the **Sale Return Settings** section.
* Locate the option:\
  \&#xNAN;**"Allow Sale Return After Lot Expiry Date (Days)"**
  * Enter the **number of days** you want to allow sale returns after the lot has expired (e.g., 5 days).

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

* Save the settings.
* **Restart** the software for the changes to take effect.

***

### **Implement the Functionality**

* Create a **Sale Return Voucher**.
* Attempt to return an item **whose lot has already expired**.
* The system will display a message:

  > *“Lot has expired beyond the 5-day limit set in Global Settings.”*

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

* At this point, you can:
  * Choose **Yes** to proceed with the return.
  * Press **No** to cancel the entry.

***

### **Set Action Behavior for Expired Lots**

* In **Global Settings**, locate the option to define the **action on expired lot sale return**.
* Choose between:
  * **Show Prompt** – Allows the user to decide.
  * **Do Not Allow SR** – Completely restricts the transaction.
* Select **“Do Not Allow SR”** to enforce a hard restriction.

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

* Save the settings.

***

### **Verify Restriction**

* Attempt the **same sale return** entry again for the expired lot.
* This time, the software will:
  * **Block the transaction**.
  * Show a message:

    > *“Lot has expired beyond the defined period. Transaction cannot be processed.”*

<figure><img src="/files/8csjNOUv9pn4DZT1F7CV" alt=""><figcaption></figcaption></figure>

***

### **Conclusion**

These settings help maintain **control and compliance** in your sales return process by enforcing rules around **lot expiry**, ensuring data accuracy and inventory integrity.


---

# Agent Instructions: 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:

```
GET https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/user-access/logic-global-admin/sale-return/allow-sale-return-after-lot-expiry-date-days.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
