[Help] Possible to Change Formatting of States in Order Line?

{REPORT ORDER DETAILS:OS.SeatPosition.asc:T.Id={TICKET ID} :{0},}

Id like it to all be in the same line with 3 spaces in between
Preferable to always be in ascending order as well.

Probably easier if you dripped the P and just used numbers… THen can sort assending in report expression straight off.

Only reason i put the P was so that waitress knew that 4 actually means Position 4. I guess i can remove it.

Or put the number into state value on its own and leave the Pn in the state name?

Yeah thats fine, does state name show up in order line description tho?

its shows as StateName:StateValue if I remember corectly

If that was the case wouldn’t it show

OrderStatus: New

Which is clearly not the case. Im pretty sure it just shows the values.

Anyways for now sorting isn’t my main concern. I just want it all to show in same line. Do you think that might be possible?

No, there is State (Status), State Name (New) with no state value,
Yours would be;

State = Position, State Name = P1 , State Value = 1 and show on ticket as P1:1

Okay I did that. I got it working including the report. Now just need to get it to all show in one line.

Probably an easier way but definatly doable with a bit of Jscript, see if kendash, q or emre come back with a way on rendering report inline…

couldnt order tags be a solution that way you just add with every product the position of the client

The ideal would be more power in order state formatting to include {expressions}.
This would be useful…
For one you could seperate portions like on receipts in place of the full stop by default which is like to do.
It would also be good for my planned specials setup which would be order tags otherwise but this would be more effective.
I’m sure this has been discussed before but can’t remember why we can’t, unless it was done but on the beta version…

1 Like

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},}

Try:

[='{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.

Greatest respect to you for all your continuous help.

Ill try it soon as I can

The first one worked great, thanks.

Okay I got my position setup working perfectly.

Only 2 minor complications that need @emre attention if you ever find the time.

  1. 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.

  2. 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.

It does support printer tag in v61 with {{ }}

New tickets do not get a ticket id until you close them.

1 Like

Are you saying that I can change the format of states in order line?