# Do not Allow Order beyond Valid Date

YouTube: [How to stop Expired Orders retrieval in Purchase - Logic ERP Software](https://www.youtube.com/watch?v=bnEvgd5CEyU)

## How to stop Expired Orders retrieval in Purchase

In this tutorial, we will learn about a feature that prevents the retrieval of orders exceeding their valid date, helping to streamline processes, minimize errors, and ensure smooth business operations.

### Beyond-Date PO Creation

* Create a "Purchase Order".
* Define "Valid Days".

<figure><img src="/files/jHzooaRpqDpU5Hi0UxO8" alt=""><figcaption><p>Here, we have defined the valid days, as shown in the picture above.</p></figcaption></figure>

### **Enabling the Restriction**

* Navigate to the "Purchase Voucher Configuration".
* Locate the option **"Do not allow orders beyond valid date."**
* Enable this option to restrict retrieval of expired orders.

<figure><img src="/files/ik4udd5LAOdDCsvRLSXt" alt=""><figcaption><p>Let's keep this feature enabled to observe its impact.</p></figcaption></figure>

### **Observe Impact on Purchase:**

* Perform a P**urchase transaction** and retrieve the order again.
* Now, only **valid pending orders** will be displayed.

<figure><img src="/files/Yqkx3KjVqi8Bk683Zknl" alt=""><figcaption><p>You can now see that only valid orders are being displayed.</p></figcaption></figure>

### **Key Benefits**

* **Prevents outdated orders** from being processed.
* **Enhances accuracy** in order management.
* **Improves operational efficiency** by reducing manual filtering.


---

# 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/setups/configurations/purchase-voucher-configurations/other-settings-1/do-not-allow-order-beyond-valid-date.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.
