Stop selling out of stock items

Can you choose a topic and stick to it rather than spreading you one question across multiple topics.

That error is because you have created an action with a field name the same a default value in the rule.
When naming open fields in actions using [:xxx] it shouldnt be a rule variable, easiest way to be sure is to make sure it has a space as no rule variables do.
It wont let you anymore after issue was found that it results in it ignoring the value entered within the action in the rule and would directly take the relative variable from the rule.

1 Like

Am still not able where am getting this wrong, these are my expanded actions.

I have changed the constraints inside the actions so they do not match up with default parameters in the rule

So a few things to remember here. If it matches the constraint… if its greater than 0 and less than 5 it will still let you sell 150 of the item putting you below. However if its already below 0 or greater than 5 then it will not let you sell any. You should rethink how your building this.

You should change it so its constraining Order QTY to what is in stock So two constraints would be:

{QUANTITY} Greater {REPORT INVENTORY:[:MenuItemName]:BarWarehouse}

So if the quantity is greater than what you have in stock then you can execute the message and you can make it tell you how many are actually in stock to adjust your order.

3 Likes

When designing logic like this it is really important to slow down and sit back and think step by step what it is doing. And you have to remember it can not think so it only does what you tell it to do. All you told it to do was check if inventory is above 0 or below 5 and react to that but you never told it what to do to limit your ability to sell more than what is in stock.

2 Likes

Ive checked my setul - I am using Custom tag called Alert to name things I specifically want to keep track of.

{ITEM TAG:Alert} is what I use instead of [:MenuItemName]

Kindly demonstrate how you are doing this,i followed the post and found you had the same problem with your stock .Please let me kb=now how you went about it.
Regards

Create a new product tag in Settings > Program Settings > Product Tag Caption

Then you tag all your items with the name that matches your inventory item.

This is the rule that makes the calculation. As I said in previous reply that you can find a script in this post that will do exactly what you need.!

This is how it works.

As Jesse said this will only show you the message you created and then you need to create automation to cancel last orders etc. when stock count is 0.

1 Like

Thanks a lot for demonstrating this,am pretty sure am almost there.Let me redo the whole set up again and let you know.

1 Like

it has worked,thank you all for your kind support

2 Likes