> 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/utilities/import-masters-transactions-from-external-files/import-sale-bills-from-external-file/import-sale-bills-from-external-file-configuration/match-rate-with-logic-lot-rate.md).

# Match Rate with Logic Lot Rate

**YouTube:** [How to Configure Rate Matching with Lot Master Rates in Import Sale Configuration?](https://youtu.be/g0-EwlBPNoM?si=TMAFNDOd_17AwnA-)

## How to Configure Rate Matching with Lot Master Rates in Import Sale Configuration?

In this tutorial, we will learn how to use the **"Match Rate with Logic Lot Rate"** option while importing a Sale Bill from an external file in Logic ERP.

This option validates the rate entered in the external file against the corresponding **Lot Sale Rate** defined in Logic ERP. The Sale Bill can be imported successfully only when the rates match.

***

### Access to the Import Sale Bills Module

* Navigate to the **Import Sale Bills from External File** module.
* Open the **Configuration** window.
* Locate and enable the option labeled as:

> **"Match Rate with Logic Lot Rate"**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FlrMs6n6NtKdVsypXGU2a%2FCNF.png?alt=media&#x26;token=b412390d-6134-4733-891d-0e2d7f8523fc" alt=""><figcaption></figcaption></figure>

#### Objective

When this option is enabled, the system checks whether the rate specified in the external file matches the corresponding **Lot Sale Rate** defined in Logic ERP.

If the rates do not match, the item is marked as invalid and cannot be imported until the rate is corrected.

* The rates must match exactly; there is no tolerance or rounding.
* Include the lot code in the file when an item has several lots at different rates. Without a lot code, the rate is compared with one of the item's lots, not a particular lot.
* Items that have no lots are not checked.

***

### Identify Invalid Items

* Now, proceed with importing the Sale Bill from the external file.
* As you can see, in the **Header Details** section, the **Invalid Doc** column displays **"Yes"**.
* This indicates that the document contains one or more invalid items.

To identify these items:

* Go to the **Item Details** section.
* Open the **Invalid Item Details** tab.
* Here, all the items that failed the rate validation are displayed as invalid.
* The **Invalid Remarks** column shows the reason for the invalid status:

> **"External Rate Not Matched With Lot Sale Rate"**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FRMrXuiAQTgmIJ7NtiJCE%2FInvalid%20Remark.png?alt=media&#x26;token=20740dbd-ba12-4143-aaf2-74d41ee8d390" alt=""><figcaption></figcaption></figure>

* The **Rate** column displays the rate specified in the external file, while the invalid remarks provide the corresponding **Lot Sale Rate** defined in Logic ERP.
* This allows us to identify the difference between the external rate and the Logic Lot Rate.
* While any bill in the file is invalid, saving is refused for **all** bills in the file, with the message **"Invalid Bill found ,Please check."**

***

### Correct the Rates in the External File

For the Sale Bill to be imported successfully, the rate specified in the external file must match the corresponding **Lot Sale Rate** in Logic ERP.

* Open the external Excel file.
* Review the rates of the invalid items.
* Update the rates according to the corresponding **Lot Sale Rate** defined in Logic ERP.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FXBqX2lySeFfFmjv2pLiH%2FXls.png?alt=media&#x26;token=b9c16883-f959-40e1-a083-cca66850b1d1" alt=""><figcaption></figcaption></figure>

* Save the updated Excel file.

***

### Import the Sale Bill Again

* Now, import the updated Sale Bill file again.
* As you can see, the **Invalid Doc** column now displays **"No"**.
* This indicates that the system has successfully matched the rates specified in the external file with the corresponding **Logic Lot Rates**.
* Now, proceed with the import process.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Fy2kWUFwz1dNMew5NZdtQ%2FNO.png?alt=media&#x26;token=fcc2b458-6e63-4c2b-9fac-51330f3de563" alt=""><figcaption></figcaption></figure>

**Result**

* The Sale Bill has been successfully imported.

***

### Verify the Imported Sale Bill

* Open the **Sale Bill** module.
* Locate the imported Sale Bill.
* Verify the item details and rates.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FBRMpb1Eh77eoIxeCGAiw%2FSale%20Bill.png?alt=media&#x26;token=c1ba84f9-50ac-4f27-aaf9-f0cd333f0c25" alt=""><figcaption></figcaption></figure>

As you can see, the sale details have been successfully reflected in the Sale Bill. The bill takes its rate from the file, which now matches the **Logic Lot Rate**.

***

### Final Outcome

The **"Match Rate with Logic Lot Rate"** option ensures that the rates entered in an external file are validated against the rates defined in Logic ERP.

If the rates do not match, the system identifies the items as invalid and displays the reason. Once the external rates are corrected to match the corresponding **Logic Lot Rates**, the Sale Bill can be imported successfully.


---

# 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/utilities/import-masters-transactions-from-external-files/import-sale-bills-from-external-file/import-sale-bills-from-external-file-configuration/match-rate-with-logic-lot-rate.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.
