> For the complete documentation index, see [llms.txt](https://ovatheme.gitbook.io/brw/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ovatheme.gitbook.io/brw/common-fields/inventory-and-quantity/inventory.md).

# Inventory

## **Watch the Tutorial Video**&#x20;

{% embed url="<https://youtu.be/9lnLuorw3WI>" %}

## 1) Defined

Control how many units can be booked simultaneously and, optionally, assign named vehicles/units to each slot.

**Field**: <a class="button primary">inventory</a>

**Applies to rental type**: <mark style="background-color:$success;">All Types</mark>

## 2) Config in Product

| Field                            | Description                                                                                                                                                                                                                                                                                                                              |
| -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Control inventory `manage_store` | <p><strong>Automatically</strong> (<code>store</code>) — plugin tracks availability by count. Recommended for most use cases.<br><strong>Manually</strong> (<code>id\_vehicle</code>) — assign named vehicles from <em>Manage Vehicles</em>; the vehicle name appears in the customer's order details. Not available for Hotel type.</p> |
| Stock quantity `car_count`       | How many units can be booked in parallel. Minimum 1. The plugin blocks new bookings when this count is exhausted for a given date range.                                                                                                                                                                                                 |
| Choose Vehicles `id_vehicles[]`  | Multi-select. Visible only when *Manually* is selected. Select from vehicles created in **Manage Vehicles**. At least one vehicle must be selected. The number of selected vehicles determines the effective stock count.                                                                                                                |

{% hint style="warning" %}
**Hotel type**: <mark style="color:red;">only the</mark> <mark style="color:red;"></mark>*<mark style="color:red;">Automatically</mark>* <mark style="color:red;"></mark><mark style="color:red;">option is shown; manual vehicle assignment is not available for hotel rooms.</mark>
{% endhint %}

## 3) Example

<div><figure><img src="/files/8X2IKJLZnGYQQR8Zssnh" alt=""><figcaption><p>Backend Settings</p></figcaption></figure> <figure><img src="/files/HoqRZfzqST4jwZx7nS0C" alt=""><figcaption><p>Booking Form - Frontend</p></figcaption></figure></div>

## 4) Manage Inventory

In this plugin, we give 2 options to support you to manage inventory:

### 1: Automatically:&#x20;

If you have 3 identical products, there’s no need to create 3 individual products for them, Simply:&#x20;

* &#x20;Firstly, create **a single product**
* Then,  go to the "**Inventory"** section, choose **"Automatically"** for "Control inventory" , and set the "S**tock Quantity" to 3**. This allows your customers to order between **1 and 3 units** of the product.

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

Suppose you have **3 Vios cars available for rent**. If a customer books all 3 cars for the period **from May 28, 2024 to May 30, 2024**, then **no other customer will be able to book these cars during that time**, since they are fully reserved.

### 2: Manually :&#x20;

Use this feature if you want to manage individual products based on **unique IDs** — for example, license plate numbers or asset codes.

{% stepper %}
{% step %}

### Create Vehicle

Go to **BRW → Manage Vehicle → Add New Vehicle**

* Enter the **Vehicle Name**
* Add a **Unique Vehicle ID** (e.g., license plate number)
* **Require Location**: Select **Yes** or **No** depending on whether you want to assign a location to the vehicle.
* Add **Unavailable Time** ( optional )

**Example:**

Suppose you have **3 identical BMW cars**, but you want to manage them individually based on their license plates: `30A456`, `29B123`, and `31C765`.

In this case, you will create **3 separate vehicle entries**, each with its own unique ID.

<div><figure><img src="/files/kewF4woVQf5w7YEHrR1w" alt=""><figcaption></figcaption></figure> <figure><img src="/files/YnXSQh5MfdPvWZEqnlmZ" alt=""><figcaption></figcaption></figure> <figure><img src="/files/O1H998xm5UOJTE4ho779" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### **Assign Vehicles Manually to Product**

* Firstly, Go to **Products >> Add New >> Inventory**
* In the "Control inventory" dropdown, select "**Manually"** value
* A new field **“Choose Vehicles”** will appear
* Select the vehicles you created in **Step 1**

<figure><img src="/files/V3UmakOj8wjE7RUDsrx4" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Display in the Frontend

When a customer places a booking for one of these products, their order will be assigned to a specific vehicle by its **unique ID**.\
That means the customer **must receive the exact vehicle** (with the ID shown in their order confirmation).

<figure><img src="/files/ARdnvUG9saockyFPSvFv" alt=""><figcaption><p>Display Vehicle ID in Order Detail</p></figcaption></figure>
{% endstep %}

{% step %}

### Manage Vehicle in Backend

* View the vehicle ID of a booking

Go to: **BRW >> Manage Bookings**

<figure><img src="/files/ZifwOctaJsOcIw0vmzpF" alt=""><figcaption><p>Admin can see Vehicle in Manage Order</p></figcaption></figure>

* Search Order by vehicle

go to: **BRW >> Manage Bookings**&#x20;

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

* Check Available Vehicle IDs of any product in any time.

Go to: **BRW >> Booking Calendar**

<figure><img src="/files/qrwpIeQIbWlIdWWr6z5k" alt=""><figcaption><p>Check available Vehicle ID</p></figcaption></figure>
{% endstep %}
{% endstepper %}
