it was the only way I could get the switch user from doing what OP describes as the problem… bringing up a waiters ticket when a table had been selected.
I’m sure if he set the table numbers in the constraints all would be ok for him.
This will always try and recall the setting ticket id as these will never match as you cant check the table number of a ticket which isnt open as your only just loggin in ;-), and given that this setting is only cleared on full payment it will always recall that regardless of if there is a table or not.
I can see what you were trying to do.
Dont worry, it worked for you there are a few loopholes in most things, is part of what the forum is for
Neither would work as the TN() will turn the invalid entity name tag to 0…
Hence why it will always display the ticket in program settings as 0 not matches any of the numbers in the list
NULL would never fire. NOT NULL would always fire.
ill try that on my test machine sunday and see how it goes with my setup. If it works with what I do then I will probably change it all as it would be annoying having to add new table numbers all the time.
Dont worry, like you said it works for you although think in the long run the issue will present itself
The issue im forseeing is a ticket keep opening on login until paid.
Best thing I like to do it base each segment/part of a setup on its own specific factor, be it state, tag or whatever etc.
Then picture that element as you go through all possible flows.
You ideally want a setup which is generally stand alone and ticket specific as much as possible, ie after the ticket is closed anything that needs doing is done, like the program setting etc.
Your setup was in theory trying to evaluate the ticket it was trying to open on login, it as far as I see is much more reliable to work that out before closing.
Like above, before closing the setting is saved or not so it knows what to do straight away on login.
.[quote=“GreatShakesBar, post:49, topic:10844”]just to add, this was from a post I made the other day trying to get help in creating the scenario:Switch User / BAR TAB integration[/quote]
Pretty sure he would have been referring to the before/ticket closing side of the flow and evaluating the constraint as a way to tell if table is selected or not
It defiantly cant be used on login 100% as there is no ticket to check the entity name of…
Thanks for this - I’m having trouble with the rule action constraints though, please would you be kind enough to copy and paste your constraint text on the rule so I can check for spaces etc. Also in your screenshot you have 2 SU Update Program Setting rule actions but I only appear to be able to add 1 - did I miss a bit of the setup?
I think I’m missing the action ‘SU - Display Saved TICKETID’ too
Thanks again
You go to add another action and right click on the list and select show all and you will be able to add the same action twice.
This is where allot of the conveniance and power of using the [:xxx] in the action itself comes from. You can built reuseable generic actions and see all your settings in the rule rather than keep jumping back to the action all the time.
Show your constraints and will see if can see the problem.
Yes ticket ID seems to be fine…
In the SU - Open Hold Ticket rule you have an action set called SU - Display Saved TICKETIT. I’ve replaced this with the action SU - Display Hold Ticket as there was no mention in your tutorial of SU Display Saved TICKETID. Was this correct or am I missing an action please?