> 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/user-access/logic-global-admin/sale-return/pick-taxes-from-sale-history-in-case-of-sale-return.md). Agents can also search and read this documentation through its [MCP server](https://kb.logicerp.com/~gitbook/mcp).

# Pick Taxes from Sale History in case of Sale Return

**YouTube:** [How to Enable Tax Pickup from Sale History in Sale Return?](https://www.youtube.com/watch?v=MJiPiYdrCX0)

## How to Enable Tax Pickup from Sale History in Sale Return?

In this tutorial, we’ll demonstrate how to enable a feature in **Logic ERP** that allows the system to **automatically pick taxes from the sales history** when processing a **sales return**. This ensures tax consistency even when rates have changed after the original sale.

***

### **Enable the Feature in Global Settings**

* Open **Logic Admin** and go to **Global Settings**.
* Navigate to the **Sale Return Settings** section.
* Locate and enable the option: **“Pick Taxes from Sale History in Case of Sale Return”**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FxqIP5ELonHJRO2bEYZVM%2FAdmin%20Setup%20-%20Pick%20Taxes%20from%20Sale%20History%20in%20case%20of%20Sale%20Return.png?alt=media&amp;token=56888b47-7822-4b3f-a1ea-cfdba5cda40c" alt=""><figcaption><p>Let's keep this feature enable to observe its Impact in billing.</p></figcaption></figure>

* Save the settings.
* Restart the software to apply the changes.

***

### Implement **the Functionality**

* **Create a Sale Bill**
  * Transact an item with a **GST rate of 12%**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FAvXLE0GDz7mbs1VE2AVW%2FSale%20bill%20for%20return.png?alt=media&amp;token=d35e3edb-f035-4aad-beec-5035cf7e16d1" alt=""><figcaption></figcaption></figure>

* Save the bill.
* **Update the Tax Rate**
  * Navigate to the Setup\Setup Items and then click to **"Setup Items Multiple Packs/Sizes".**
  * Click on **Group Details** Tab.
  * Change the GST rate from **12% to 18%**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FLt0YsMFE5lTPNLhBGIzf%2F18%25%20tax.png?alt=media&amp;token=6914392f-f191-4e04-97ea-5f0ab8bc233d" alt=""><figcaption></figcaption></figure>

* Save the updated item settings.
* **Create a Sales Return**
  * Start a **sale return** for the same item.
  * As soon as the lot is selected, the **Sales History** window appears.
  * Select the **original sale bill** against which the return is being processed.
  * The system **automatically retrieves the original tax rate (12%)** from the sales history, instead of applying the new 18% rate.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F20T2rnnWU02NXHSmFUDg%2FSale%20bill%2012%25.png?alt=media&amp;token=2f4c23db-1135-42a8-9779-076265b60ef7" alt=""><figcaption></figcaption></figure>

***

### **Conclusion:**

Enabling this feature ensures that **sales returns reflect the tax structure of the original transaction**, preventing discrepancies caused by tax updates and maintaining accurate return processing.


---

# 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/user-access/logic-global-admin/sale-return/pick-taxes-from-sale-history-in-case-of-sale-return.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.
