> 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-learning-hub-tutorials-and-best-practices/inventory/receipt-register/receipt-register-configuration/lot-selection.md).

# Lot Selection

**YouTube:** [How to Configure Auto Lot/Batch Selection (FIFO/LIFO, etc.) in Receipt Register?](https://youtu.be/mjYOMh1L3Hw)

## How to Configure Auto Lot/ Batch Selection (FIFO/ LIFO, etc) in Receipt Register?

In this tutorial, we will discuss **lot selection criteria** and **retrieving items through Excel** in the **Receipt Register**.

***

### Configuring Lot Selection Criteria

* Open the **Receipt Register** window.
* Click on **Configuration**.
* Navigate to **Other Options**.
* Locate the **Lot Selection** option.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Flr3gC938bj391k9XJhxA%2FCon%201.png?alt=media&amp;token=37c90b11-e651-4a8e-bda6-6e152dba048a" alt=""><figcaption></figcaption></figure>

This dropdown provides multiple lot selection parameters.

***

### Default Behavior – Manual Lot Selection

* By default, **Lot Selection** is set to **Manual**.
* When you transact an item, the **Lot Search window** appears.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FwlWbit7UsvGr2hgGeVRl%2FManual%20LOT.png?alt=media&amp;token=423842b0-f21a-4608-9c59-e76b25925368" alt=""><figcaption></figcaption></figure>

* You must manually select the required lot to proceed with the transaction.

***

### Show Lots for Current Branch Only

There is an additional option that works along with manual lot selection:

* **Show lots for current branch only**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F02stewb3X0mE8EEALgyy%2FShow%20Lot%20Current%20Branch.png?alt=media&amp;token=e594f36a-a2e5-441c-9522-a30261967baa" alt=""><figcaption></figcaption></figure>

#### How it works:

* Enable this option from the configuration window.
* Save the changes.
* Proceed with a new receipt entry.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FqaiWqnBCy32iW10Jdg1Y%2FCurrent%20Branch%20Rate.png?alt=media&amp;token=0c0c5536-3bdf-4324-92e9-f29ed2d7455e" alt=""><figcaption></figcaption></figure>

**Result:**

* Only the **lots or batches created in the current branch** will be displayed in the lot search window.

***

### Other Available Lot Selection Options

Apart from manual selection, the following options are available:

* **Auto Pick First Lot**\
  Automatically selects the first available lot.
* **Auto Pick a Single Lot**\
  Automatically selects the lot only if a single lot exists; otherwise, the lot search window appears.
* **Auto Pick on FIFO Basis**\
  Automatically selects the lot purchased **first**.
* **Auto Pick on LIFO Basis**\
  Automatically selects the lot purchased **most recently**.

***

### Auto Pick on FIFO Basis

* Set **Lot Selection** to **Auto Pick on FIFO Basis**.
* Save the configuration.
* Initiate a new receipt transaction.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F2ugRkrKmwAdbCW7jm4Xg%2FFIFO.png?alt=media&amp;token=2ba102ce-b55c-40b8-a6a0-12b1d31afd94" alt=""><figcaption></figcaption></figure>

**Result:**

* The system automatically picks the **oldest purchased lot**.

***

### Auto Pick on LIFO Basis

* Open the configuration window again.
* Change **Lot Selection** to **Auto Pick on LIFO Basis**.
* Save the changes.
* Create a new receipt entry.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Fq4vkyt5CEpuK5njaCeRI%2FLIFO.png?alt=media&amp;token=a42ad807-1166-4289-b233-4855babdb824" alt=""><figcaption></figcaption></figure>

**Result:**

* The system automatically picks the **most recently purchased lot**.

***

### Retrieving Items Through Excel

You can also retrieve items using an **Excel file**:

* Click on the **Retrieve** option available in the receipt register.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FBLeATdIMdialUlXSp4f1%2FRet.png?alt=media&amp;token=f422010b-2a59-442f-a34b-3d7c72a85957" alt=""><figcaption></figcaption></figure>

* Browse and select the required **Excel file**.
* Enter **Header Row = 1**.
* Click **Refresh**, then click **OK**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Fj4PtbSVcyG1jE3bsBjTT%2FImp.png?alt=media&amp;token=09c43f28-f9ae-41ae-93e1-49cbd33f2ad7" alt=""><figcaption></figcaption></figure>

**Result:**

The items and lots are picked and displayed based on the **configured lot selection rule**\
(for example, **LIFO basis**, if LIFO is selected in configuration).

***

### Summary

* Flexible lot selection options
* Branch-wise lot visibility
* Automatic FIFO/LIFO compliance
* Fast item entry using Excel retrieval


---

# 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-learning-hub-tutorials-and-best-practices/inventory/receipt-register/receipt-register-configuration/lot-selection.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.
