# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
