> 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/validate-purchase-bill-amount-against-gate-pass-entry.md).

# Validate Purchase Bill Amount against Gate Pass Entry

YouTube: [How to validate Bill Amount in Purchase against Gate Pass Entry?](https://www.youtube.com/watch?v=2nWLdsOEYsQ)

## How to validate Bill Amount in Purchase against Gate Pass Entry?

In this Tutorial, we will explore a validation feature that ensures the purchase amount or bill number aligns with the Gate Pass Number (GPN).

### **Enabling Validation Option:**

* Navigate to the "**Purchase Challan Configuration"**.
* Locate the option and enable "Validate Purchase Bill Amount against Gate Pass Entry"

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FcVUvYQPxaHJcpDpaSl3p%2FValidate%20Purchase%20Bill%20Amount%20against%20Gate%20Pass%20Entry-Configuration.png?alt=media&#x26;token=9da62d1a-9c98-4dff-9916-5a92b6a8f190" alt=""><figcaption></figcaption></figure>

### **Gate Pass Manager Configuration:**

* Navigate to the Inventory > Gate Pass Manager and the Click on Configuration.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FoglvyDQVQnqxN89Z0FMu%2FGPN%20Configuration.png?alt=media&#x26;token=cf440fc7-fac1-433f-9370-15382f51e40d" alt=""><figcaption></figcaption></figure>

* After configuring, enter the gate pass entry.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FjkaeAmcqP2n95FeXwSev%2FModify%20GSP.png?alt=media&#x26;token=5fb7b556-1f3a-4b43-a016-b4c5599da9aa" alt=""><figcaption></figcaption></figure>

* Ensure that your entry has been saved. For example, we have entered an amount of 25,000.

### **Validating During Purchase Challan:**

* Create a **New Purchase Challan**.
* Enter details: **Challan Number, Date, GPN Number, and GPN Date**.
* Attempt to **save the challan**:
  * If the **Challan Amount** does not match the **GPN Entry**, a validation message appears.
  * The software **prevents saving** the voucher until the amounts match.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FJoiSEMjVhPzlie3AqeDl%2FValidation%20Propmt%20in%20Challan.png?alt=media&#x26;token=f414638c-3861-4216-bbd3-a8082490d006" alt=""><figcaption></figcaption></figure>

**Finalizing the Entry**

* Adjust the **Challan Amount** to match the **GPN Entry**.
* Save the **Challan** again.
* The software **validates the Bill Number** against the GPN Entry.
* After corrections, the software **allows the entry to be saved**.

***

### **Notes**

* **Unlock the GPN fields first.** The check runs only when **GPN (TICK TO UNLOCK)** is ticked under **Column Locks** on the same **Other Settings-1** tab. Without it, **GPN Number** and **GPN Date** are hidden and the check is skipped.
* **Amount is always checked; the rest is optional.** The net amount must equal the gate pass amount exactly, and the gate pass must be of the same party. The bill number, bill date and branch are checked only when **Challan No.**, **Challan Date** or **Branch** is ticked under **Validate Selected Gate Pass Fields against Purchase Document** in the gate pass configuration (the **Configuration** button on Gate Pass Entry Against L.R., or on Gate Pass Manager in Issue Against New Gate Pass).
* **The amount check suits full receipts.** A gate pass made in Gate Pass Entry Against L.R. carries the total amount of all the invoices ticked in that save, even when only part of the goods arrived. In practice the amounts match when one invoice was ticked, its goods arrived in full and it is billed whole. If one L.R. brings several invoices, or goods arrive in part, leave this option off and use **GPN (TICK TO UNLOCK)** alone to record the gate pass.
* **Type the gate pass number as shown in its save message**, for example **G145**, with no dash or spaces in between. Otherwise the save stops with "Gate Pass Entry No. ... not found." A gate pass made in Gate Pass Manager (Issue Against New Gate Pass) for the same party is also accepted.
* **The GPN Date cannot be after the document date.** The challan's own date (**Date And No**) must be on or after the **GPN Date**.
* **Enter the GPN on the Purchase Challan only.** A GPN can be used only once in a branch, across challans and vouchers, and it is not carried from the challan to the voucher. Tick **GPN (TICK TO UNLOCK)** and this option in the **challan's** configuration, not in the configuration of the Purchase Voucher made from it.
* For the full flow from the L.R. to the purchase bill, see **Purchase Inward Workflow Process**.


---

# 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/validate-purchase-bill-amount-against-gate-pass-entry.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.
