# 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&#x26;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:\
   \&#xNAN;**“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&#x26;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>
