# How to reduce the product count after the sales

**URL:** <https://community.glideapps.com/t/how-to-reduce-the-product-count-after-the-sales/24396>\
**Category:** Ask for Help\
**Created:** [March 17, 2021, 8:55am UTC](https://community.glideapps.com/t/how-to-reduce-the-product-count-after-the-sales/24396 "2021-03-17T08:55:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![so\_root](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/so_root/32/15394_2.png) [@so\_root](https://community.glideapps.com/u/so_root)\
**Post date:** [March 17, 2021, 8:55am UTC](https://community.glideapps.com/t/how-to-reduce-the-product-count-after-the-sales/24396/1 "2021-03-17T08:55:26Z")

</div>

Hi this is SO and using PRO app  
I would like to understand how can i set the quantity for selling product.  
And reduce based on the number of items been sold.

Supposed i have  
Product A 10 (avaliable)  
Product B 5 (avaliable)  
Product C 3 (avaliable)

when user purchase A for 3… Want to update the status like below  
Product A 7 (avaliable)  
Product B 5 (avaliable)  
Product C 3 (avaliable)

I could not find any related items in the doc.  
[https://docs.glideapps.com/all/](https://docs.glideapps.com/all/)

Also wanted to made buy button disable when it is reached to Zero

Kindly help me out for this challenges

---

<div class="post-metadata">

**Author:** ![Rosewebstudio](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rosewebstudio/32/12261_2.png) [@Rosewebstudio](https://community.glideapps.com/u/Rosewebstudio)\
**Post date:** [March 17, 2021, 9:02am UTC](https://community.glideapps.com/t/how-to-reduce-the-product-count-after-the-sales/24396/2 "2021-03-17T09:02:19Z")

</div>

Hi @so_root

There are a number of community posts about this.

Here is one I thought might be useful

> [@Qty for inventory](https://community.glideapps.com/t/qty-for-inventory/6460/2):
>
> It is possible. I have this functionality in my app [itemstore.glideapp.io](http://itemstore.glideapp.io) Just have to set the initial amount. Then, do a relation to the item name in your sales sheet. Roll up the count and use a math column to subtract the count from the original total.

---

<div class="post-metadata">

**Author:** ![so\_root](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/so_root/32/15394_2.png) [@so\_root](https://community.glideapps.com/u/so_root)\
**Post date:** [April 11, 2021, 2:21am UTC](https://community.glideapps.com/t/how-to-reduce-the-product-count-after-the-sales/24396/3 "2021-04-11T02:21:11Z")

</div>

@Rosewebstudio

Thanks for reply ! And sorry for late response.  
Will check on that your link !
