my question is this, is it possible to execute print job of multiple tables at once?
Like in my restaurant at midnight i want a trigger that executes print job for every open table at that moment so that my waiters just need to grab there ticket and give to the client?
Not as a single ticket but using a loop value action/rule you could probably feed in list of open ticket ids into print job which would print separate tickets which sounds more like what you want anyway.
If I remember corectly it would start with the loop value action which is like an automation command action but you feed in a CSV list of values.
A second rule picks up the values one by ones inning the rule for each value.
So you need a report expression to return a comma seperated list of ticket ids for the open tickets or any constraint required.
The looped rule would only really need a print action specifying the ticket Id using whatever variable is provided in the loop value rule variable dropdown.
The following shows use of the Loop Values Action and Value Looped Rule, which you will need to understand to make this happen.
It uses the Ticket List screen to select/generate the list of TicketIds, but you could instead generate the TicketIds list via Report Expression based on Ticket Status State “Unpaid” as @JTRTech mentions …
Turns out you don’t need any of that Loop stuff. This is very simple to do. This is the “magic” Report expression that will list your Unpaid Tickets …
{REPORT TICKET DETAILS:T.Id:(TS.Status=Unpaid OR TS.Status=Bill Requested):,}
You can see that ^ is constrained to list only Tickets having a Status State of “Unpaid” or “Bill Requested”. You could add more constraints for Entity Type “Customers” or whatever you need.
hi just did your setup but for some reason it only prints ticket that is open and when i print from like say button in navigation menu it only prints a layout of ticket
here are my settings ( imo i dont think i missed something)
only thing i had to modify @QMcKay was the automation command as when the mapping is set to “visibility>ticket” it will print open ticket for the amount of open tickets at that moment so i set it to “display on navigation” and then it works like intended.
thanks
The Ticket Lister Widget can fire an Automation Command, and by default, the [:CommandValue] that is passed to the Rule that handles the Automation Command will contain a list of Ticket Ids for the Tickets that are selected.
So you use the same sort of mechanism where you loop through the values supplied by [:CommandValue].