> For the complete documentation index, see [llms.txt](https://docs.airdev.co/ecommerce-platform-template/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airdev.co/ecommerce-platform-template/assets/reuseables/update_inventory.md).

# update\_inventory

Element for updating a product's total amount in stock

## Update Inventory Reusable Overview

This reusable element is used to update a `Product`'s `Total in stock` amount. Users can increment or decrement the amount by 1, or input a specific amount to be used. This exists on the [owner's portal](/ecommerce-platform-template/assets/pages/owners-portal-page.md).

## Key Workflows

#### Group Increment Quantity is clicked

* Increases the `Product`'s `Quantity` by **1**

#### Group Decrement Quantity is clicked

* Decreases the `Product`'s `Quantity` by **1**

#### Input Product Quantity's value is changed

* Updates the `Product`'s `Quantity` to the inputted value
