# Create New Lot Auto (-ve Stock/Damage Returns Only)

**YouTube:** [How to Auto- Create Lot/Batch for Negative Stock in Billing or for Expired/Damaged Sale Returns?](https://www.youtube.com/watch?v=CsB4mQ4Vb04)

## How to Auto- Create Lot/Batch for Negative Stock in Billing or for Expired/Damaged Sale Returns?

This tutorial demonstrates how to enable and use the feature that **automatically creates a new lot** when stock goes negative or a damaged return is processed during billing.

***

### **Enabling the option**

* Open **Logic Admin**.
* Navigate to **Global Settings**.
* Go to the **Sales Settings 1** tab.
* Locate and enable the option labeled: **"Create New Lot Auto (-ve Stock/Damage Returns Only)".**

<figure><img src="/files/QOJnFtOFw9XLkfPI1AMN" alt=""><figcaption></figcaption></figure>

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

***

### **Generate a Sale Bill with Negative Stock**

* Open the **Sales Billing** window.
* Create a new sale bill and add an item **with zero or negative stock**.
* As soon as the item is added:
  * The software will **automatically generate a new lot** (e.g., **Lot 1**).
  * This occurs whenever stock is unavailable or becomes negative during billing.

<figure><img src="/files/5hmXHzYFjgy82zjUoA92" alt=""><figcaption></figcaption></figure>

* Proceed to **save the bill**.

***

### **Process a Damaged Return**

* Open the **Return Entry** window.
* Select the same item used in the sale.
* Set the **Return Type** to **"Damaged"**.
* The software will:
  * Automatically create a new lot labeled **"DMG"**.
  * Assign the return to this lot.

<figure><img src="/files/SfnDbbyX2vic66NSDwsH" alt=""><figcaption></figcaption></figure>

***

### **Process an Expired Return**

* Again, select the same item in a new return entry.
* Set the **Return Type** to **"Expired"**.
* The system will:
  * Automatically create a new lot labeled **"EXP"** for expired items.

<figure><img src="/files/5wvW4yvE4hBsJoSmiLLZ" alt=""><figcaption></figcaption></figure>

***

This feature helps ensure accurate inventory tracking by creating distinct lots for negative stock and specific return reasons, improving traceability and stock management.


---

# 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-learning-hub-tutorials-and-best-practices/user-access/logic-global-admin/sale/sale-settings-1/create-new-lot-auto-ve-stock-damage-returns-only.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.
