Working on a package (dinner/bed and breakfast system) and woundering if This should work and Im just doing it wrong.
Have a ticket tag for the number of covers/people in the package.
Already have courses states for grouping on kitchen prints etc.
So am using this to calculate if an order should be set to a PACKAGE state from which a order state changed rule makes the appropriate price adjustments.
This is one of the action constraints; {TICKET ORDER COUNT EXP:(OS.Package=Package) && (OS.Kitchen Course=Starters)} < {TICKET TAG:Package Covers}
I was hoping to increase the flexibility of the setup should additional courses be added in the future by using the course itself as part of the TICKET ORDER COUNT.
What im asking is should something like this work? {TICKET ORDER COUNT EXP:(OS.Package=Package) && (OS.Kitchen Course={ORDER STATE:Kitchen Course})} < {TICKET TAG:Package Covers}
Specifically this expression; (OS.Kitchen Course={ORDER STATE:Kitchen Course})
This is in an order added rule and the {ORDER STATE:Kitchen Course} return the expected āStartersā for the order tested with.
To help understand here is a recording of the process so far;
Excuse the sluggish recording, hoping its not the number of order added rules :-/
Also ignore the red ask question, is my test notification of one of the PMS scripts running on triggerā¦
Another blast from the past you were involved in @JTRTechā¦
I am trying to do something very similar to thisā¦
But I am trying to do it within a rule (Show Message for now)ā¦
I have an Order State called DiverName (multiple divers are often added to one ticket) and when a new order is added I assign the diver name to the order, but when I do this I need to know if/how-many orders that diver already has in the ticket.
If I add diver āMattā and hard-code the name as below I get the correct result: {TICKET ORDER COUNT EXP:(OS.DiverName=Matt)}
But, if assign āMattā and a local settting called āDiverNameā and then use the following, I get a result of ā-ā: {TICKET ORDER COUNT EXP:(OS.DiverName={SETTING:DiverName})}
Any idea how I can get a count of orders with a particular state, but allow the state we are searching for to be changed programatically?
This gave me the idea of using a square bracket style value instead of a curly bracketā¦ By chaining on to the āOrder State Updatedā hook I was able to use [:State] and that worked perfectly