i am in beta. This is working fine for me, I just hope I can figure out a way to fix this formatting.
@QMcKay would you happen to have any ideas on a way to format this report string so that the ticket tag shows all positions in the same line? Also would be great if I could add like 3 spaces between each value.
{REPORT ORDER DETAILS:OSV.SeatPosition.asc:T.Id={TICKET ID} :{0},}
[='{REPORT ORDER DETAILS:OSV.SeatPosition.asc:T.Id={TICKET ID} :{0},}'.replace(/<!rn>/g,'')]
Or maybe:
[='{REPORT ORDER DETAILS:OSV.SeatPosition.asc:T.Id={TICKET ID} :{0},}'.replace(/\r\n/g,'')]
I am just guessing. It is really hard to tell without knowing the exact output of the Report Tag. But basically, there are line-feeds in the output that you want to strip out.
And since JScript .replace() method will only act on first occurrence of a match when you use a string like '<!rn>', you instead need to use a Regex like /.../g to “global” replace of all matches.
Only 2 minor complications that need @emre attention if you ever find the time.
For some reason “tickets merged” rule is not giving me a {TICKET ID} so I cant update the postionList ticket tag, it comes out blank. I verified with a show message action that we are not getting a ticket id at all.
If we can get a way to format states text on orders it would be awesome. Right now im tracking positions by states and its really small. I have been getting alot of complaints that many waitresses can barely see each position.
Okay sweet I got it. by any chance can we insert little icons next to the text?
Also now my position state shows twice. Is there any way I can not show the default state? I could of sworn I did it before for combo order grouping states.
Sorry one last thing… Is there anyway to get the max value of my report. Or I guess even the count of all those values since 1,2,3,4,5,6 would have a count of 6 which is = max value.
So if im trying to tag a ticket that was just merged is it not possible then. When you said that, I automatically thought to just do close ticket and reopen ticket with Ticket ID but that is not possible since we cant get the id until its closed. I tried the display ticket to maybe refresh it but still not getting an id.
It wont get an ID until it is saved to DB. Only 2 things can save it to database, close ticket, or Save Ticket action. Display ticket only displays a ticket…it has never saved a ticket to database.
Like the smiley face lol
If it were me if maybe try putting the position icon/number on left of price field to save virtical space but also keep a nice horizontal alignment.
That’s what I did for my new/void etc, put them in price field rather than order itself so they align right.