# Sale Bill Date and System Date should be the same

**YouTube:** [How to Restrict Sale Bill Saving When Voucher Date Differs from System Date ?](https://www.youtube.com/watch?v=1q0-kBo1oGA\&list=PLTq0qszGb3BNf2HwB0l2NVoufF-mB23ch\&index=8)

In this tutorial, we’ll cover how to restrict users from saving a sale bill if the **bill date does not match the system date**. This ensures date accuracy and prevents backdated or future-dated transactions.

To enforce transaction date integrity by ensuring all sale bills are created using the current system date.

***

### **Step-by-Step Instructions:**

* **Access Global Settings:**
  * Open the **Logic folder** and launch **Logic Admin**.
  * Navigate to **Global Settings**.
  * Under the **Sale Settings 1** section, locate the option:

    > **“Sale Bill Date and System Date should be the same”**

<figure><img src="/files/lP3qA45YRwjijMA68xDN" alt=""><figcaption><p>We will keep this feature enabled to evaluate its effect on the billing process.</p></figcaption></figure>

* **Enable and Apply the Setting:**
  * Check the box to enable the option.
  * Click **Save** to apply the changes.
  * **Restart the software** to activate the new setting.

***

### **Demonstration:**

* **Scenario:**
  * Attempt to create a **sales voucher** with a **bill date that differs from the system date**.
* **System Behavior:**
  * A message appears:

    > *“Document date and system date do not match.”*

<figure><img src="/files/diDcitHQpdv164S2ZLHG" alt=""><figcaption><p>As you can see in the picture, the software has displayed a prompt.</p></figcaption></figure>

* The software **prevents the voucher from being saved**.
* **Resolution:**
  * Ensure the **bill date matches the current system date**.
  * Once corrected, the voucher can be saved successfully.

***

### **Key Benefits:**

* Maintains **date consistency** in billing.
* Prevents **backdated or future-dated transactions**.
* Supports **accurate financial reporting** and audit compliance.


---

# 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/user-access/logic-global-admin/sale/sale-settings-1/sale-bill-date-and-system-date-should-be-the-same.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.
