> 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/billing/packing-slip/packing-slip-configuration/lock-document-number.md).

# Lock Document Number

**YouTube:** [How to Prevent Document Number Changes in Packing Slips?](https://youtu.be/lVlMC_9O2_Q)

## How to Prevent Document Number Changes in Packing Slips?

In this tutorial, we will learn how to use the **"Lock Document Number"** option in Logic ERP to prevent users from manually editing or modifying the document number during Packing Slip entry.

***

### Objective of This Feature

* Prevent manual modification of document numbers
* Maintain document number sequence
* Avoid accidental changes
* Improve document control
* Ensure consistent voucher numbering

***

### Observe the Default Behavior

* Open the **Packing Slip Entry** window.
* Initiate a **New Document**.
* Observe the **Document Number** field.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FuIxRM3xp7MIBKthLzHyG%2FDefault.png?alt=media&amp;token=4397b041-79fa-404e-bdd0-b5a5fefa142d" alt=""><figcaption></figcaption></figure>

**Result**

By default, the document number field is editable, allowing users to manually modify the number as required.

***

### Access to the Packing Slip Configuration

* Open the **Packing Slip Configuration** window.
* Navigate to the **Other Options 2** section.
* Locate and enable the option labeled as:

> **"Lock Document Number"**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FZCDKHh77LKvKJTtRQQIj%2FCNF.png?alt=media&amp;token=d9a9bffb-734f-49b0-b24b-574e74259c29" alt=""><figcaption></figcaption></figure>

* Save the configuration changes.

***

### Verify the Document Number Lock

* Return to the **Packing Slip Entry** window.
* Click on **New Document** to refresh the window.
* Observe the **Document Number** field.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FZ67jXc8LMyPKMRNDjdie%2FDoc.png?alt=media&amp;token=8ac3a3e5-c4ab-4d0e-9ce1-ed12f9cadede" alt=""><figcaption></figcaption></figure>

**Result**

The document number field is now **locked**, preventing users from manually editing or modifying the document number.

***

### Key Benefits

* **Document Control:** Prevents unauthorized changes to document numbers.
* **Accurate Numbering:** Maintains the defined document sequence.
* **Prevents Errors:** Avoids accidental modification of document numbers.
* **Improved Tracking:** Ensures consistent document identification.
* **Easy Configuration:** Can be enabled whenever document numbering needs to be controlled.

***

### Important Note

After enabling **"Lock Document Number"**, click **New Document** to refresh the entry window and apply the setting.

***

### Final Outcome

Once **"Lock Document Number"** is enabled, Logic ERP automatically locks the document number field in Packing Slip entry, ensuring that users cannot manually modify the assigned document number.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/billing/packing-slip/packing-slip-configuration/lock-document-number.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
