# Lock All Modifications on or Before

**YouTube:** [How to Lock All Modifications On or Before a Defined Date?](https://youtu.be/4tNLuGvJ-MY)

## How to Lock All Modifications On or Before a Defined Date?

In this tutorial, we will learn how to use a **global option in Logic ERP** that restricts all types of modifications or deletions to documents created before a specific date. This feature is especially useful for ensuring data integrity after closing monthly or yearly accounts.

***

### Configure Global Setting

* Open **Logic Admin**.
* Navigate to **Global Settings**&#x20;
* Under the **Other Settings** Click to **User Rights Settings**.
* Scroll to the bottom and locate the option labeled as:

> **“Lock all modifications on or before”**.

* Enter the **cut-off date** (e.g., 31-March-2025).
  * All entries created **on or before this date** will be locked.

<figure><img src="/files/gs2tKwQm1M3jSAQvbMW9" alt=""><figcaption></figcaption></figure>

* Save the settings and **restart the software** for the changes to apply.

***

### Implement in Sale Bill

* Open the **Sale Bill** window.
* Select a bill created **before the defined lock date**.
* Try modifying the quantity and save the changes.
  * The software will immediately restrict the action and display an error message.

<figure><img src="/files/BPx7Sqz1hd8NPPn8SDQB" alt=""><figcaption></figcaption></figure>

* Similarly, if you try to **delete the bill**, the software will block it.

<figure><img src="/files/ULxGUbbnCpr9bjF1Vax4" alt=""><figcaption></figcaption></figure>

***

### Verify in Other Documents

* Open another document, such as a **Sale Challan**.
* Select an existing challan created before the locked date.
* Attempt to modify or update the details.
  * Once again, the software will prevent the action and display a restriction message.

***

### Example Scenario

| Document Type | Created On | Action Tried    | System Response      |
| ------------- | ---------- | --------------- | -------------------- |
| Sale Bill     | 15-Mar-25  | Change quantity | ❌ Restricted (Error) |
| Sale Bill     | 20-Apr-25  | Change quantity | ✅ Allowed            |
| Sale Challan  | 28-Feb-25  | Delete entry    | ❌ Restricted (Error) |

***

### Key Benefits

* Ensures **data integrity** by preventing accidental or unauthorized edits.
* Helps in maintaining **finalized accounts** after audit/closing.
* Provides better **control over historical records**.


---

# 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/others/user-rights-settings/lock-all-modifications-on-or-before.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.
