# Stock Out Validation

**YouTube:** [How to Set Expiry / Purchase Date Stock Out Validation in Godown Wise Transfers?](https://www.youtube.com/watch?v=tLTb2WrwKas)

## How to Set Expiry / Purchase Date Stock Out Validation in Godown Wise Transfers?

In this tutorial, we will learn **how to apply stock-out validation checks in godown-wise stock transfer entries in Logic ERP**.

***

### Access Stock Out Validation Settings

* Open the **Configuration** window.
* Navigate to **Other Settings**.
* Locate the option labeled as "**Stock Out Validation"** option.

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

* This dropdown provides **three validation modes** to control how stock lots are selected during stock transfer.
* By default, the validation is set to **None**.

***

### Validation Mode: None (Default)

* Create a **new stock transfer voucher**.
* Transact an item that has **multiple lots available**, for example:
  * One lot with a **nearer expiry date**
  * Another lot with a **later expiry date**

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

**Result:**

* In **None** validation mode, the system **allows saving the voucher** even if you select a lot with a later expiry date.
* No warning or restriction is applied.

This mode provides complete flexibility but does not enforce stock rotation rules.

***

### Validation Mode: FIFO on Lot Expiry

* Open **Configuration → Other Settings**.
* Change **Stock Out Validation** to **FIFO on Lot Expiry**.
* Save the configuration.

Now, create a **new stock transfer entry** and select the same item.

**Result:**

* If you attempt to select a lot with a **later expiry date** while another lot with an **earlier expiry date** is available:
  * The system displays a **warning message**.

<figure><img src="/files/7esbZsViHSdz12VOogj4" alt=""><figcaption></figcaption></figure>

* This alert informs you that a lot with an earlier expiry exists.

**Benefit:**

* Ensures **proper stock rotation**
* Helps prevent **expiry-related losses**
* Guides users to transfer the **nearest-expiry lot first**

***

### Validation Mode: FIFO on Lot Purchase Date

* Open **Configuration → Other Settings**.
* Change **Stock Out Validation** to **FIFO on Lot Purchase Date**.
* Save the configuration.
* Initiate a **new stock transfer voucher**.

**Result:**

* If a lot with an **earlier purchase date** exists in stock and you attempt to transfer a **newer purchased lot**:
  * The system generates a **validation alert**.

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

* This ensures that the **oldest purchased stock** is transferred first.

**Benefit:**

* Maintains **FIFO compliance based on purchase date**
* Helps in accurate inventory flow and audit control

***

### Conclusion

The **Stock Out Validation** feature in Logic ERP ensures better inventory control during godown-wise stock transfers by offering:

* **None** – No validation, full flexibility
* **FIFO on Lot Expiry** – Prioritizes lots nearing expiry
* **FIFO on Lot Purchase Date** – Prioritizes oldest purchased stock

By selecting the appropriate validation mode, you can enforce stock rotation policies and reduce inventory risks effectively.


---

# 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/inventory/stock-transfer-godown-wise/stock-transfer-godown-wise-configuration/stock-out-validation.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.
