> 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/purchase/purchase-voucher-date-should-be-equal-to-purchase-challan-date-when-retrieved.md).

# Purchase Voucher date should be equal to Purchase Challan Date when retrieved

YouTube: [How to Ensure Purchase Voucher Date Matches Purchase Challan Date During Retrieval?](https://www.youtube.com/watch?v=i_JKI7pofKo)

## How to Ensure Purchase Voucher Date Matches Purchase Challan Date During Retrieval?

This tutorial explains how to enable a validation that restricts saving a purchase voucher if its date does not match the corresponding purchase challan date.

***

### **Access Logic Admin Settings:**

* Open the **Logic Folder** and run **Logic Admin**.
* Go to **Global Settings**.
* Navigate to the **Purchase** tab.
* Locate and enable the option: **"Purchase Voucher dates should be equal to Purchase Challan date when retrieved"**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FpwTJ4byylZHENj303AFf%2FAdmin%20Setup%20-%20Purchase%20Voucher%20dates%20should%20be%20equal%20to%20Purchase%20Challan%20date%20when%20retrieved.png?alt=media&amp;token=0fc4298e-2e8b-4e3e-afd2-c81f98487c2f" alt=""><figcaption><p>Let's keep this feature enable to observe its impact in Purchase.</p></figcaption></figure>

* Click **Save** to apply the changes.
* Restart the software to ensure the configuration takes effect.

***

### **Validate the Configuration:**

1. Go to the **Purchase Entry** module.
2. Retrieve a **Purchase Challan** into the purchase entry.
3. Attempt to save the purchase with a voucher date that differs from the challan date.
4. The system will display an error:\
   **“Document date should be equal to Purchase Challan date.”**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FBwZiAAycD36YZIg6GPKO%2FChallan%20Prompt.png?alt=media&amp;token=18c6faa1-f5f5-4155-b9e9-751706b77747" alt=""><figcaption><p>As you can see, the software has displayed a prompt indicating that the <strong>Challan date and Purchase date are not the same</strong>.</p></figcaption></figure>


---

# 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/user-access/logic-global-admin/purchase/purchase-voucher-date-should-be-equal-to-purchase-challan-date-when-retrieved.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.
