# Database with out of stock features

**URL:** <https://forum.sambapos.com/t/database-with-out-of-stock-features/14202>\
**Category:** V5 Question\
**Created:** [February 28, 2017, 8:35am UTC](https://forum.sambapos.com/t/database-with-out-of-stock-features/14202 "2017-02-28T08:35:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sammun](https://forum.sambapos.com/user_avatar/forum.sambapos.com/sammun/32/33983_2.png) [@sammun](https://forum.sambapos.com/u/sammun)\
**Post date:** [February 28, 2017, 8:35am UTC](https://forum.sambapos.com/t/database-with-out-of-stock-features/14202/1 "2017-02-28T08:35:21Z")

</div>

Hi am unable to follow the link about  
{to prevent selling when no stock quantity}  
hi could anyone help me with already defined DB TO BLOCK the sale

---

<div class="post-metadata">

**Author:** ![RickH](https://forum.sambapos.com/user_avatar/forum.sambapos.com/rickh/32/51960_2.png) [@RickH](https://forum.sambapos.com/u/RickH)\
**Post date:** [February 28, 2017, 10:51am UTC](https://forum.sambapos.com/t/database-with-out-of-stock-features/14202/2 "2017-02-28T10:51:06Z")

</div>

You could look at this and adapt

> [@Product out of stock visualisation](https://forum.sambapos.com/t/product-out-of-stock-visualisation/7173/23):
>
> i also have a low level stock warning appear, you can set this to any level you want, for testing i have it set to 5 so when an order is added to the ticket if the stock level is less than 5 a warning message appears. Again, you can customise the type of message thats displayed eg display message action, ask question, ticket header etc, i like using the ask question with transparency on as below from main pos screen add an order if the order has a balance of less than 5 a warning me…

> [@Out of stock codes {to prevent selling when no stock quantity}](https://forum.sambapos.com/t/out-of-stock-codes-to-prevent-selling-when-no-stock-quantity/13574):
>
> Please help me with the code to import via SQL to block sale if no quantity in stock i tried to follow the forum to no avail i will be very thankful
