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

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