Hello,
I’m building a basic daily specials count down. Happy with the result so far - Admin has two buttons on order line - to set the current item quantity and to disable the counting for the specific product. If a waiter orders below zero, a message pops up and the order is canceled.
Showing the number of items left on the menu button header is easy. The thing is i only want to show it on the button header for the items that are currently being count down. I also dont want to bother the staff with changing the button header for daily specials every morning - I want to automate it.
I wrote an SQL script which works great - changes menu item header for a specific product to Product ({SETTING:ItemCount_Product}) which displays well in the menu.
UPDATE mi SET [Header]= mi.[Name] + ' ({SETTING:ItemCount_' + mi.[Name] + '})'
FROM [ScreenMenuItems] mi
WHERE Name = 'Product name goes here'
The last step is to run the script from Samba and to pass the Product name to the script.
I tried adding {0} instead of the product name to the sript and passing an argument from within samba as emre mentioned here Menu Item button display format - #19 by emre
I’m getting this error no matter what I try:
How to solve this please?
This could be a super simple to use and clean way to track how many daily specials are left.
Thank you,
Ondra