> 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="/files/9llKJRHiTohDobQXT2j5" 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="/files/Mk11iOGHo8C5bNf9gvNM" 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 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/setups/configurations/purchase-voucher-configurations/other-settings-1/prompt-for-lot-number-before-saving-purchase-challan.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.
