# Stop selling out of stock items

**URL:** <https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077>\
**Category:** V5 Question\
**Created:** [January 3, 2019, 7:35pm UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077 "2019-01-03T19:35:54Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [March 21, 2019, 6:04pm UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077/41 "2019-03-21T18:04:46Z")

</div>

Add product covers bulk.  
Main gap in that is change quantity +/- which can be disabled and custom buttons put in their place which I did a tutorial for.  
How else do you add products? By automation which you create custom anyway.

---

<div class="post-metadata">

**Author:** ![Johon\_Alimov](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/j/f19dbf/32.png) [@Johon\_Alimov](https://forum.sambapos.com/u/Johon_Alimov)\
**Post date:** [March 21, 2019, 6:19pm UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077/42 "2019-03-21T18:19:57Z")

</div>

You can just tap on product more than once instead of entering number and pressing product button. It will pass away that rule and will add product to ticket any quantity you need.

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [March 21, 2019, 6:28pm UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077/43 "2019-03-21T18:28:44Z")

</div>

> [@Johon\_Alimov](#):
>
> You can just tap on product more than once instead of entering number

So each time order added triggered.

Sounds like config issue to me, constraint on order added like this would be the most straightforward to restrict. Single quantity added each time and order added trigger.

---

<div class="post-metadata">

**Author:** ![Wisefix](https://forum.sambapos.com/user_avatar/forum.sambapos.com/wisefix/32/53986_2.png) [@Wisefix](https://forum.sambapos.com/u/Wisefix)\
**Post date:** [March 22, 2019, 6:46am UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077/44 "2019-03-22T06:46:14Z")

</div>

> [@emre](#):
>
> [=TN('{REPORT INVENTORY

You can see the Savannah Drink they are 3 only in stock.  
now if i click on the menu item button four times or more it will go to negative.  
Thats all i want to stop

 ![savaah](https://forum.sambapos.com/uploads/default/original/3X/5/9/59c4a6f91f3c3a7e15ee15a8a237a8ba78f9686a.png)  
is there a counter or this  
‘{TICKET ORDER QUANTITY TOTAL EXP:(MN=[:MenuItemName]) && (OS.Status=New)}’  
Can prevent the addition of the menu item beyond the current stock level  
 ![clieked%203%20times](https://forum.sambapos.com/uploads/default/original/3X/2/8/28b3d403c50f378e12fd71671455e8ba111d5fd2.png)

---

<div class="post-metadata">

**Author:** ![Wisefix](https://forum.sambapos.com/user_avatar/forum.sambapos.com/wisefix/32/53986_2.png) [@Wisefix](https://forum.sambapos.com/u/Wisefix)\
**Post date:** [March 22, 2019, 7:07am UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077/45 "2019-03-22T07:07:58Z")

</div>

> [@emre](#):
>
> [=TN(‘{REPORT INVENTORY:[:MenuItemName]:Локальный склад}’)-TN(‘{TICKET ORDER QUANTITY TOTAL EXP:(MN=[:MenuItemName]) && (OS.Status=New)}’)]

Got the synatx working now let me brush it … 😏😏😏

---

<div class="post-metadata">

**Author:** ![Johon\_Alimov](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/j/f19dbf/32.png) [@Johon\_Alimov](https://forum.sambapos.com/u/Johon_Alimov)\
**Post date:** [March 22, 2019, 7:08am UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077/46 "2019-03-22T07:08:52Z")

</div>

It is a pity, it is not possible (for now, i hope). Because , each time you add product to ticket, the product quantity in inventory stock won’t decrease in real-time, it will decrease after you press Close ticket button. And that’s the issue that Product Added rule won’t work properly as product inventory remains the same when even product is added to ticket.

---

<div class="post-metadata">

**Author:** ![Wisefix](https://forum.sambapos.com/user_avatar/forum.sambapos.com/wisefix/32/53986_2.png) [@Wisefix](https://forum.sambapos.com/u/Wisefix)\
**Post date:** [March 22, 2019, 7:15am UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077/47 "2019-03-22T07:15:29Z")

</div>

Works Perfectly well unless i meet another glitch this is super

 ![savaaah%20worki](https://forum.sambapos.com/uploads/default/original/3X/c/b/cb5eb4ce8e8cbe88576ae7509398ac4e2c3185e9.png)

---

<div class="post-metadata">

**Author:** ![Wisefix](https://forum.sambapos.com/user_avatar/forum.sambapos.com/wisefix/32/53986_2.png) [@Wisefix](https://forum.sambapos.com/u/Wisefix)\
**Post date:** [March 22, 2019, 7:23am UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077/48 "2019-03-22T07:23:14Z")

</div>

Yes i agree plus with the various methods of adding orders in to a ticket means more checks  
we need a better method to ensure we can lock the negative stock sales

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [March 22, 2019, 10:40am UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077/49 "2019-03-22T10:40:15Z")

</div>

You could in theory use similar sum in the button header.

Other than menu addition the +/- quantity would be the main issue other than custom automation.  
Personally I’m moving away from +/- and having a single change quantity button with a prompt anyway.

---

<div class="post-metadata">

**Author:** ![Wisefix](https://forum.sambapos.com/user_avatar/forum.sambapos.com/wisefix/32/53986_2.png) [@Wisefix](https://forum.sambapos.com/u/Wisefix)\
**Post date:** [March 23, 2019, 12:29pm UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077/50 "2019-03-23T12:29:09Z")

</div>

wish it was possible to hide the +/- buttons from the clerks

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [March 23, 2019, 12:32pm UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077/51 "2019-03-23T12:32:34Z")

</div>

Pretty sure you can. It’s a setting somewhere.

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [March 23, 2019, 1:05pm UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077/52 "2019-03-23T13:05:01Z")

</div>

You can, it’s in user role options.  
See my tutorial for custom +/- buttons which then allow you to add constraints etc.

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [March 23, 2019, 1:06pm UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077/53 "2019-03-23T13:06:19Z")

</div>

> [@TUTORIAL: Custom +/- Buttons](https://forum.sambapos.com/t/tutorial-custom-buttons/16986):
>
> So following some tricky automation I found myself needing to ‘catch’ order quantity changes on the +/- buttons but that’s currently only possible through Ticket Total Changed event but that gave me other issues as was working with calculations. Anyway. Automation Commands Plus Quantity [image] Minus Quantity [image] Both will want mapping to order line with visible state of New Automation Command Executed Rule You could get creative with order states to make minus d…

---

<div class="post-metadata">

**Author:** ![Wisefix](https://forum.sambapos.com/user_avatar/forum.sambapos.com/wisefix/32/53986_2.png) [@Wisefix](https://forum.sambapos.com/u/Wisefix)\
**Post date:** [March 23, 2019, 1:12pm UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077/54 "2019-03-23T13:12:48Z")

</div>

Thanks Gents that’s a mileage solved lots of issues.

---

<div class="post-metadata">

**Author:** ![muthoga](https://forum.sambapos.com/user_avatar/forum.sambapos.com/muthoga/32/18954_2.png) [@muthoga](https://forum.sambapos.com/u/muthoga)\
**Post date:** [September 30, 2019, 12:12pm UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077/55 "2019-09-30T12:12:27Z")

</div>

Sorry for reviving a very old post, I have tried following up this post to set stock. I want to stop selling of negative stock from my set up. That’s means my stock level should never go below 0.  
When I follow this post am list on the way, The actions associated with the set rules are not clearly defined. I would like to know the constraints inside the rules, so for those of you who have managed to set this rule kindly share your actions

---

<div class="post-metadata">

**Author:** ![muthoga](https://forum.sambapos.com/user_avatar/forum.sambapos.com/muthoga/32/18954_2.png) [@muthoga](https://forum.sambapos.com/u/muthoga)\
**Post date:** [October 11, 2019, 6:23am UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077/56 "2019-10-11T06:23:12Z")

</div>

![png1](https://forum.sambapos.com/uploads/default/original/3X/2/8/283a222f3290bfd7c56c823b07642173e23dbf59.png)

---

<div class="post-metadata">

**Author:** ![Posflow](https://forum.sambapos.com/user_avatar/forum.sambapos.com/posflow/32/63001_2.png) [@Posflow](https://forum.sambapos.com/u/Posflow)\
**Post date:** [October 11, 2019, 6:34am UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077/57 "2019-10-11T06:34:35Z")

</div>

Show us what you made so far.

If you read the post you would see that there is a perfect script to get what you need and original poster named everything that needs to be present for this to work.

Also as you can see that the name matches action that says Show Message in red.

---

<div class="post-metadata">

**Author:** ![muthoga](https://forum.sambapos.com/user_avatar/forum.sambapos.com/muthoga/32/18954_2.png) [@muthoga](https://forum.sambapos.com/u/muthoga)\
**Post date:** [October 11, 2019, 7:00am UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077/58 "2019-10-11T07:00:51Z")

</div>

![PNG6](https://forum.sambapos.com/uploads/default/original/3X/5/5/55ea4a23123de85c5bde3d0aa97437cce4212dd7.png)

The constraints are as follows

 ![PNG5](https://forum.sambapos.com/uploads/default/original/3X/e/e/eeaca08331d793080940e5fbe6df97b5f8b3c3e8.png)

---

<div class="post-metadata">

**Author:** ![Posflow](https://forum.sambapos.com/user_avatar/forum.sambapos.com/posflow/32/63001_2.png) [@Posflow](https://forum.sambapos.com/u/Posflow)\
**Post date:** [October 11, 2019, 9:03am UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077/59 "2019-10-11T09:03:11Z")

</div>

I am not in front of a computer to check my setup but replace {NAME} with [:MenuItemName]

---

<div class="post-metadata">

**Author:** ![muthoga](https://forum.sambapos.com/user_avatar/forum.sambapos.com/muthoga/32/18954_2.png) [@muthoga](https://forum.sambapos.com/u/muthoga)\
**Post date:** [October 11, 2019, 9:35am UTC](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077/60 "2019-10-11T09:35:34Z")

</div>

When i change the [Name] to [MenuItemName] this is the error that am getting

 ![PNG8](https://forum.sambapos.com/uploads/default/original/3X/6/c/6c98582cfe754ea9d3e844e9bfa5cbf533758174.png)

![PNG7](https://forum.sambapos.com/uploads/default/original/3X/f/e/fe726fafa33d0f2cbd9332ffc4210b3af3f598bf.png)

[Previous page](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077.md?page=2)

[Next page](https://forum.sambapos.com/t/stop-selling-out-of-stock-items/19077.md?page=4)
