> 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="/files/i8ymKNdmJQ8exgNFAr7k" 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="/files/KmkNFUC5EzXYMkMca3o2" 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="/files/J259L5qHs4p68L2ENR7n" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
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=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
