> 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-version-release-notes/november-2020/billing/auto-allocate-lots-for-barcode-qty-scanning-in-sale-bill.md).

# Auto Allocate Lots for Barcode /Qty Scanning in Sale Bill

In the **Setup Sale Configuration** settings, the “**Auto Allocate Lost for Barcode/Qty Scanning”** option is added, which will allow you to automatically allocate items quantity from other lots in case the desired quantity is insufficient in a particular lot you selected.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Frk9Wo7UtECKhXtWs4znz%2Fimage.png?alt=media&amp;token=006d2971-1dc7-4a2a-9ca0-7a3afb2c2390" alt=""><figcaption></figcaption></figure>

After enabling this option when you will go to the Sale Bill and create a Bill for an item. Enter the item code along with its quantity by using a separator. ***For example, in the following picture***, you can see that along with item code i.e. **8904141505097**, a separator (**%**) has been used to define its weight/quantity i.e. **20000** (grams). It means you need 20 items right now. But the current lot has only **1** item, so in the **Qty** column, only 1 item got added.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F983UMUhfLKP68ZObbV6J%2Fimage.png?alt=media&amp;token=d565251d-9041-4d75-a185-86714a2357a1" alt=""><figcaption></figcaption></figure>

But as we have enabled the “**Auto Allocate Lost for Barcode/Qty Scanning”** option, when you will press enter on your keyboard, it will automatically fetch items from other lots until the desired quantity level is reached i.e., **20**. You don’t have to manually enter the lot codes or quantity numbers every time.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F4Y6GAQ1QBzQZ9W5seYiq%2Fimage.png?alt=media&amp;token=754bf1fb-3f78-45c6-b81c-b5090906b8f3" alt=""><figcaption></figcaption></figure>

**\[Note: Remember, the option will only work if you are using a Barcode and Quantity separator.]**\ <br>


---

# 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-version-release-notes/november-2020/billing/auto-allocate-lots-for-barcode-qty-scanning-in-sale-bill.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.
