> 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/update-rates-from-formula-before-saving.md).

# Update Rates from formula before saving

**YouTube:** [How to Update Rates from Formula before Saving in Purchase?](https://www.youtube.com/watch?v=RNzyAQtX6mk)

## How to Update Rates from Formula before Saving in Purchase?

\
 In this tutorial, we will discuss an essential feature in purchase entry that allows automated rate calculation using predefined formulas.

**Steps to Configure & Apply the Feature:**

* Navigate to the "**Purchase Voucher Configuration"**.
* Locate the option and enable **"**&#x55;pdate Rates from formula before savin&#x67;**"**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F8hdgHE9abMLg4iQdUScF%2FUpdate%20Rates%20from%20formula%20before%20saving-Configuration.png?alt=media&amp;token=48246080-d523-4983-b12b-cee3550ba96c" alt=""><figcaption><p>Let's keep this feature enable to observe it's Impact.</p></figcaption></figure>

### Implement in Purchase Voucher:

* Create a new "Purchase Voucher".
* Define the item and its details.
* The purchase rate is automatically calculated using a predefined formula set in the purchase voucher configuration.
* Save the purchase voucher.
  * Note: Currently, we have not defined the scheme amount, so the purchase rate is 1048.95.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FD1S7jLsFPfyjp7VpKhBf%2FPurchase%20Bill%20Before%20CD.png?alt=media&amp;token=776e5fc1-0e71-4883-8e6e-b07b442d0857" alt=""><figcaption><p>This picture displays the Rate without the Scheme Rs.</p></figcaption></figure>

### **Define Scheme Amount:**

* To define the scheme in rupees, press **Shift + F5** in the rate field.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F0FsQHyr3SDDT2IzGTGq3%2FSchme%20Rs.png?alt=media&amp;token=d95627b0-4777-483b-bf89-45b2e45bb633" alt=""><figcaption><p>Define the Scheme Rs here as instructed.</p></figcaption></figure>

### **Purchase Rate After Defining Scheme(Rs)**

* **Modify the Recently Created Purchase Bill**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Fn6n9wbaHi5F3H6vgWMr2%2FPurchase%20Bill%20After%20CD.png?alt=media&amp;token=991830af-841e-4ee4-8a54-d80d9fa9adf8" alt=""><figcaption><p>In this picture, you can see that the rate has been updated successfully.</p></figcaption></figure>

✔ **Result:** The purchase rate is successfully updated as per the predefined formula.

### **Conclusion**

This feature helps in automating purchase rate calculations, reducing manual errors, and ensuring accurate billing.


---

# 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/update-rates-from-formula-before-saving.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.
