> 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/setups/configurations/purchase-voucher-configurations/other-settings-1/prompt-for-lot-number-before-saving-purchase-challan.md).

# Prompt for Lot Number before saving (Purchase/Challan)

YouTube: [How to Enable Lot /Batch No. popup before saving in Purchase?](https://www.youtube.com/watch?v=Ifn5PJclfeA)

## How to Enable Lot /Batch No. popup before saving in Purchase?

In this tutorial, we will guide you through the steps to configure a **prompt** for entering a **default LOT number** before saving a **purchase voucher or challan**. This ensures accuracy in inventory management and prevents missing LOT details.

### Steps to Configure Default Lot Number Prompt

* Navigate to the "Purchase Voucher Configuration".
* Locate the option "Prompt for Lot Number before saving (Purchase/Challan)".
* Tick the checkbox to activate this validation.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FGmy5UvRq4eGkgue0y0Ft%2FPrompt%20for%20Lot%20Number%20before%20saving%20PurchaseChallan-Configuration.png?alt=media&amp;token=7e70a953-170e-4cd9-8fb2-cf818ef109e6" alt=""><figcaption><p>Let's keep this feature enabled to observe its Impact.</p></figcaption></figure>

### **Observe Impact on Purchase:**

* Create a New "Purchase Voucher".
* As soon as you define the **item** and its **details** and proceed to save, the software will pop up a window prompting you to enter the **default LOT number**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Fi3BlUDN80Alaj81KkfwP%2FPrompt%20for%20Lot%20number%20manul.png?alt=media&amp;token=6f286dac-c5e4-488b-b614-3d405ac79e44" alt=""><figcaption><p>This picture illustrates that you need to <strong>enter the LOT number</strong> here.</p></figcaption></figure>

### Benefits

* **Organized Records:** All item stocks in a purchase will be recorded under the same lot number.
* **Error Reduction:** Confirms lot number before saving to prevent mistakes.


---

# 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/setups/configurations/purchase-voucher-configurations/other-settings-1/prompt-for-lot-number-before-saving-purchase-challan.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.
