Close ticket rule

Ok so I was wrong about load ticket portion… but my Close Ticket action works exactly the same as the Close Ticket button so I am not sure what you mean when you said yours doesnt.

HOw does your change price list rule execute is it a button you press from ticket view? Or is it a trigger?

Its a trigger.

Tjanks

G

So that is why… The trigger did not load the ticket… apparently it cannot see the open ticket. A command button would see the open ticket.

That would be why Close Ticket action would not work within a trigger. Triggers must work outside of tickets and do not read them… I am just guessing.

This works, sort of. But the Price Definition does not change, nor the department.

As seen above, the Ticket is closed, then re-opened, however, the Price List (and Department) does not change.

Is this more-or-less what you are trying to accomplish? Change Price List mid-ticket?

I still think it is impossible to change the price of an item once It is already added to the ticket. YOu can swap price list and reopen a ticket and anything else added will have new price… but it wont retro back an item thats already added.

Actually i wont say impossible we can probably figure out a way.

LOL. I’m not sure that is the intent. At least, that’s not what I’m trying to accomplish. I don’t want the price of original orders to change, I just want to switch price lists, so a new order on the same ticket is using a different price list.

Exactly that

Will try with a button to see if the problem ia the trigger

Thanks

G

Sorry I was going by a different post gerlandog made asking a similar question and putting it in with this question from this post. IT felt like to me he was trying to figure out a work around to his other post about a similar situation and ran into a problem with the CLose Ticket action not working.

That being said, I believe its possible to get the prices to change but it wont affect anything that was already added to the ticket.

Maybe you can use the Update Order action within the rule and it would change current orders price. And to make the trigger work within an open ticket maybe in the Trigger Executed rule make the action execute an Automation Command… Then make a rule that is when that command is executed it changes the price list… closes ticket etc.

So to recap… your in middle of a ticket… the trigger executes… it changes the price of the order already added to ticket closes ticket… reopens ticket… you continue with adding rest of orders with new price list.

Ill try to build it and test it see if it works.

I just got it to work with the Rule I previously posted. But I am not allowed to change Department, only price list.

The Action to change Price List must not change Department.

So it will work we just gotta get it to work with a trigger execute… So he can still use the trigger and not have to hit a button. I think setting the trigger up like i mentioned above might work.

It should theoretically work with a trigger, just not sure why you would want it to. You could be mid-order and suddenly your ticket closes on you!

What I’ve learned from this though, is that you can’t change Department, and almost certainly Ticket Type as well. Further, once the ticket is closed for the final time, you may want to revert back to the original price list.

I wouldnt want it to work that way myself. I was trying to figure out a solution for gerlandog from a previous post he made:

@gerlandog It definately will close the ticket for you with trigger using the setup i posted above:

… now to get it to automatically reopen it… thats the issue im having trouble with.

Gerlandog can you let me know your use case? Why do you want to change prices while creating a ticket? How are you using triggers? Does your prices changes by time?

Side note: Price list changes (anything relates with menus) intentionally not activates during ticket creation.

The only use I might see this being relative would be a Happy Hour… If you spill over into Happy Hour time while in middle of a ticket and you would want it to reflect the Happy Hour prices without having to cancel and restart a ticket.

Happy hour can occur in the middle of a ticket. Thats why prices can change by time. In version 47 close ticket action us not working…
Do not knoq why.
I am setting a trigwr that exec every weekday at 8pm enabling happy hour and one triggwr that exec 9pm to disable happy hour.
When ypu are in the middle of creating a ticket and the trigger exec it asks if ypu wamt to enable happy hour. If yes it should close ticket (not dping) and change price list (doung it corrwct).

Thanks

G

Ah! I see now… that’s being really nit-picky about happy hour imo.

I have happy hour triggers as well (price tag HH), but if I have a ticket open before the trigger executes, that’s too bad. Closing and re-opening the ticket will allow the Price change to come into effect, so the next drink they order will have HH pricing. Of course previous orders on the ticket will have regular pricing.

Close Ticket not working on v47? My screens indicate my test was done on v46. I’ll upgrade to see if it stops working…

edit: updated to v47, and it still works… Switch Price List button closes and repoens ticket, with new definition active.

So my button works, even in the middle of Ticket creation, but the Trigger fails to close the ticket.

I see the trigger executing, since it displays messages, but the ticket never closes and reopens…

1 Like