# Inventory Histories

This page displays the inventory histories. Search the inventory by filling in the details at the top of the page and click the Search icon.
![search icon](../images/inventory-history-search-icon.png)

## Details

| DETAILS          | MEANING                                                                                                                                                                                   |
| :--------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------  |
| Company          | Search the inventory by company                                                                                                                                                           |
| From Date        | Search the inventory from the date you choose                                                                                                                                             |
| To Date          | Search the inventory until the date you choose                                                                                                                                            |
| Product Info     | Search the inventory by product info                                                                                                                                                      |
| Zone             | Search the inventory by zone where the product is stored. (letters are not case sensitive)                                                                                                |
| Location         | Search by location of the product                                                                                                                                                         |
| Lot Id           | Search by lot id of the product                                                                                                                                                           |
| Carton ID        | Search by carton id of the product                                                                                                                                                        |
| Batch no         | Search by batch no.                                                                                                                                                                       |
| Status           | Inventory Status:<br/>- UNLOADED<br/>- STORED<br/>- MISSING<br/>- TERMINATED<br/>- DELETED                                                                                                |
| Transaction Type | Transaction type for the product:<br/>- UNLOADING<br/>- UNDO_UNLOADING<br/>- TERMINATED<br/>- PICKING<br/>- NEW<br/>- LOADING<br/>- RELOCATE<br/>- PUTAWAY<br/>- PACKING<br/>- ADJUSTMENT |

## How To Read Inventory Histories

### Case 1: Pick All The Quantity
![case 1](../images/inventory-history-case-1.png)

| PRODUCT     | SEQ | BATCH NO | OPENING QTY | QTY | STATUS     | TRANSACTION TYPE | LOCATION |
| :---------- | :-- | :------- | :---------- | :-- | :--------- | :--------------- | :------- |
| Dotted Book | 0   | 001      | 0           | 1   | Unloaded   | Unloading        | Buffer   |
| Dotted Book | 1   | 001      | 1           | 0   | Stored     | Putaway          | A-1-1-1  |
| Dotted Book | 2   | 001      | 1           | -1  | Stored     | Picking          | A-1-1-1  |
| Dotted Book | 3   | 001      | 0           | 0   | Terminated | Terminated       | A-1-1-1  |
| Dotted Book | 4   | 001      | 0           | 0   | Terminated | Loading          | A-1-1-1  |

- Seq 0:

  - Opening quantity is 0 because there are no physical products in the warehouse.
  - Quantity is 1 because there is 1 product unloaded into the warehouse.

- Seq 1:

  - Opening quantity becomes 1 because 1 unit of product has already been put into the warehouse.
  - Quantity is 0 because there is no additional quantity in the putaway stage.
  - The status becomes Stored because the product is already stored in the

- Seq 2:

  - Opening quantity becomes 1 because there is no additional quantity in the putaway stage.
  - Quantity is -1 because product has been picked for Loading.

- Seq 3:

  - Opening quantity is 0 because there is no remaining quantity of products in the warehouse.
  - Quantity 0 because there is no additional quantity in the Picking stage.
  - The status and transaction type becomes Terminated because there is no product left in the warehouse.

- Seq 4:
  - Opening quantity becomes 0 because there is no remaining quantity of products in the warehouse.

### Case 2: Pick half of the quantity</ins>

| PRODUCT     | SEQ | BATCH NO | OPENING QTY | QTY | STATUS   | TRANSACTION TYPE | LOCATION |
| :---------- | :-- | :------- | :---------- | :-- | :------- | :--------------- | :------- |
| Dotted Book | 0   | 001      | 0           | 10  | Unloaded | Unloading        | Buffer   |
| Dotted Book | 1   | 001      | 10          | 0   | Stored   | Putaway          | A-1-1-1  |
| Dotted Book | 2   | 001      | 10          | -5  | Stored   | Picking          | A-1-1-1  |
| Dotted Book | 3   | 001      | 5           | 0   | Stored   | Loading          | A-1-1-1  |

- Seq 0:

  - Opening quantity is 0 because there are no physical products in the warehouse.
  - Quantity is 10 because there are 10 products unloaded into the warehouse.

- Seq 1:

  - Opening quantity becomes 10 because 10 units of products are unloaded into the warehouse.
  - Quantity is 0 because there is no additional quantity in the putaway stage.
  - The status becomes Stored because the product is already stored in the warehouse.

- Seq 2:

  - Opening quantity becomes 5 because there are 5 remaining units in the warehouse.
  - The status remains Stored because there are no products remaining in the warehouse.

### Case 3: New Inventory and Make Batch Number Adjustment

| PRODUCT     | SEQ | BATCH NO | OPENING QTY | QTY | STATUS     | TRANSACTION TYPE | LOCATION |
| :---------- | :-- | :------- | :---------- | :-- | :--------- | :--------------- | :------- |
| Dotted Book | 0   | 001      | 0           | 10  | Unloaded   | New              | A-1-1-1  |
| Dotted Book | 1   | 001      | 10          | -2  | Stored     | Picking          | A-1-1-1  |
| Dotted Book | 2   | 001      | 8           | 0   | Stored     | Loading          | A-1-1-1  |
| Dotted Book | 3   | 001      | 8           | -8  | Terminated | Adjustment       | A-1-1-1  |
| Dotted Book | 4   | 001      | 0           | 8   | Stored     | Adjustment       | A-1-1-1  |

- Seq 0:

  - Opening quantity is 0 because there are no physical products in the warehouse.
  - Quantity is 10 because there are 10 products unloaded into the warehouse.
  - Transaction type is New because it is a new inventory created in inventory adjustment without going through Unloading and Putaway stage.

- Seq 1:

  - Opening quantity becomes 10 because 10 units have already been put into the warehouse.
  - Quantity is -2 because 2 units have been picked up from the warehouse.
  - The status becomes Stored because the product is already stored in the warehouse.

- Seq 2:

  - Opening quantity becomes 8 because 2 units have already been taken in the Picking stage.
  - Quantity is 0 because there is no additional quantity in the Loading stage.

- Seq 3: (There is batch number adjustment made in inventory adjustment)

  - Opening quantity becomes 8 because there are 8 remaining units in the warehouse.
  - Quantity becomes -8 because it needs to terminate the quantity to adjust the batch number.
  - The status becomes Terminated because it needs to terminate the product from any process.
  - Transaction type becomes Adjustment because there is adjustment made.

- Seq 4:
  - Batch number change after adjustment.
  - Opening quantity becomes 0 because the quantity has been terminated.
  - Quantity is 8 and status becomes Stored because there are 8 remaining units stored in the warehouse.

## Export inventory history data

1. Click on the export data icon button at the bottom left corner of the page.
![inventory history export](../images/inventory-history-export-icon.png)

2. Select your preferred file type: json, csv, xlsx or xls.
![inventory history file type](../images/inventory-history-file.png)
