> 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F0Y4D8BHDaNKR1ViGjkUu%2FPO%20beyod%20valid%20date.png?alt=media&amp;token=472323ee-b3fe-4655-9f1a-8c068b946f22" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FzVm69SyNpMYkKhp61ixw%2FDo%20not%20allow%20orders%20beyond%20valid%20date%20Configuration.png?alt=media&amp;token=46a5d848-7c62-4da7-abc5-0c4a8d38cc86" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Ff6yIftogwZOu2oGVA6BH%2FValid%20PO%20in%20PV.png?alt=media&amp;token=57dca886-1b77-4712-b671-a9a0b52097d9" 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 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/setups/configurations/purchase-voucher-configurations/other-settings-1/do-not-allow-order-beyond-valid-date.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.
