> 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/retrieve-sold-items-from-purchase-challan.md).

# Retrieve Sold Items from Purchase Challan

 YouTube: [How to Enable the retrieval of only sold items from a Challan in Purchase ?](https://www.youtube.com/watch?v=3iyeLAC1_DM)

## How to Enable the retrieval of only sold items from a Challan in Purchase?

In this tutorial, we’ll explore a feature that allows you to retrieve only the sold items from a purchase chalan when bringing it into a purchase voucher.

### Steps to Enable This Feature:

* Open **Purchase Voucher Configuration**.
* Navigate to **Other Settings 1**.
* Scroll down and enable **Retrieve Sold Items from Purchase Chalan**.
* Save the configuration.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FFR2VyoKURTRJVxy1QvVJ%2FRetrieve%20Sold%20Items%20from%20Purchase%20Challan.png?alt=media&amp;token=4451542e-6235-44e0-a4e5-5490ccdb6d41" alt=""><figcaption><p>Let's keep this feature enable to observe it's impact.</p></figcaption></figure>

### Reviewing the Process:

* Before creating a purchase voucher, let's first review the purchase chalan.
* To check the stock status of sold items, open the **Stock Ledger Report**.
* Here, you can see that sales bills have been generated for three sizes of this item.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F0Mcx15bAqohCJDz3K4zF%2FReport.png?alt=media&amp;token=d3c4f717-7f94-4898-9fd0-144f2b1c4f62" alt=""><figcaption><p>This picture shows the sold quantity from the purchase challan.</p></figcaption></figure>

### Applying the Feature:

* Now, retrieve the chalan in the Purchase Voucher.
* Upon retrieval, only the items that have been sold from the challan will be included.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FwqIHalGAhF5plaqlVlHg%2FSelected%20Items%20are%20retrieved%20in%20Purchase.png?alt=media&amp;token=e5a3cfdb-c1c0-4c97-8a06-1705908ceb7f" alt=""><figcaption><p>As you can see, only the sold items have been retrieved.</p></figcaption></figure>

This feature ensures that purchase vouchers reflect only the sold stock, streamlining inventory management.


---

# 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/retrieve-sold-items-from-purchase-challan.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.
