Printer Template Sort

Remove spaces between seat states.

Look here.

Also your getting it twice because you set that state twice. Fix your automation then test it.

Hi Jesse!

So I have no issue with the ORDER GROUPS, the SEAT 0, SEAT 1, SEAT 2, SEAT 3, etc. works but I would like to further sort the order within the seats.
So:

image

But I would like to order it by the Number after the name.
Right now it is in the order it was inputted:
–Seat1–
Jupiter Rain(83)
Passion Sunrise(79)
Cuc Roll(62)
Chef Sashimi(10)
Green Halo(81)
–Seat 2–
Iron Goddess(83)
Green Halo(81)
Hamachi Sashimi(16)

Instead I would like it sorted by ascending number value:
–Seat1–
Chef Sashimi(10)
Cuc Roll(62)
Passion Sunrise(79)
Green Halo(81)
Jupiter Rain(83)
–Seat 2–
Hamachi Sashimi(16)
Green Halo(81)
Iron Goddess(83)

I’ll check out the automation for the double entry as well!

Because it’s a Test Database, it’s a huge mess right now, with me testing stuff :sweat_smile:

Make the numbers a Custom Tag and sort by that. Set the order for them.

Sorry if it’s a stupid question…but how would I sort by a Custom tag? I tried looking around for that, and wasn’t able to find it.

This may be going down a rabbit hole. But the Action, “Update Order State” has a field for State Order: That might be what you are looking for.

rNbn1jZ3LG

Jesse posted this a while back:

I not aware of any tag that could be used to sort within the ticket template its self…Someone else might know of a way to do it.

However, using a Custom Tag could be used to read that value and place it in the State Order.

Again, this may be going down a rabbit hole. There may be a simpler way of doing this.

Hmmm…So I’ve tried playing around with State Order, and unless I’m using it completely wrong, I’m still stuck…

So I set the State Order when order add to ticket:

image
I’ve tried the Update Order State with
State Name: PrintOrder
State:{ITEM TAG:PrintOrder}
State Order: {ITEM TAG:PrintOrder}

as well as
State Name: X
State: X
State Order: {ITEM TAG:PrintOrder}

and
State Name: 1
State: 1
State Order: {ITEM TAG:PrintOrder}

and
State Name:PrintOrder
State:PrintOrder
State Order: {ITEM TAG:PrintOrder}

and of course the one in the pic above
State Name: X
State Order: {ITEM TAG:PrintOrder}

The Item tags are the number displayed after the product.:
image

In the printer template Sort Order for every Update Order State listed above I’ve tried:
Order State:X
Order State:PrintOrder
OrderState:1
{ITEM TAG:PrintOrder}
ITEM TAG:PrintOrder
Item Tag:PrintOrder

all with no change in the sort order…

So I’m assuming that I’m not using the Update Order State Action properly?

I was able to get it to work by adding in the State (I’m not sure Group Order is necessary or not, you can try it without it.).

NmGUxCtLaE

This is printer template with a sort order of Name. The numbers behind the item names is the print number I put in as product tags. I have another product tag called Department that I use for our setup. They are Admissions, Snack Counter, Pro Shop… etc.


This image is using Order State:X. You can see the orders are rearranged by the Product Tags.

1 Like

omg…I will try that out right away!

You added that action to a “Order Added To Ticket Rule” right?

Yep, for my testing…with no constraints.

I have NO idea why it doesn’t work for me…I first tried it with:
image
Where each item added to ticket would be grouped with the selected seat, and the state, would be set to selected seat, and the order would be set to the {ITEM TAG:PrintOrder}

but…nothing.

So I disabled all the “Order added to ticket” rules by adding a custom constraint 1 greater 2 to all of them and made a new rule:
image

(Prep level was an existing item tag that I had which was not being used)

These are the items that I have:
image
image
image
image

This order:
image

With this Printer template:
image

Displays this:
image

I am completely stumped…

Try using this in your printer template:

[ORDERS GROUP|ORDER STATE:NState]

I’m getting NState from this image:

Woops, I was trying a couple things out, and didn’t change the PrepLevel.

So I did try it with:
image

and this is the result:
image

I don’t know if this would make a difference, but I notice there is no {NAME} in this line. The names on the template preview, are they the barcode or portion?

Ah, so I have custom names that are displayed for the KDS, and I used {BARCODES} instead of making a new Custom Tag…
So yes the “name” is {BARCODE}

If it wasn’t too much trouble, would you be able to post your printer template?

I’ll try copying it and see if that works?

Also thank you so much for your help, I really appreciate it!

Here is a simpler, working receipt template.

[LAYOUT]
-- General layout
<T>CUSTOMER
<T>RECEIPT
<L00>Date:{TICKET DATE}
<L00>Time:{TIME}
{ENTITIES}
<L00>Ticket No:{TICKET NO}
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
-- <J10>Sub Total:|[=F(TN('{TICKET TOTAL}')-TN('{TAX TOTAL}'))]
-- {TAXES}
{SERVICES}
<J10>Total:|{TICKET TOTAL}*
{PAYMENTS}
<DB>
<C00>*All prices include
<C00>applicable MN sales tax
<C00>(Sales tax amount: ${TAX TOTAL})
<F>=
<C10>T H A N K   Y O U

[DISCOUNTS]
<J00>{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}

[SERVICES]
<J00>{CALCULATION NAME}|{CALCULATION TOTAL}

[PAYMENTS]
<J00>{PAYMENT NAME}|{TENDERED}
<J00>Change amount |{CHANGE TOTAL}

[ORDERS]
-- Default format for orders
<J00>- {QUANTITY} {NAME} {ITEM TAG:PrintNumber} |{VISIBLE PRICE} EA {TOTAL PRICE}
{ORDER TAGS}

[ORDERS:Gift]
-- Format for gifted orders
<J00>- {QUANTITY} {NAME}|**FREE**
<J00>    -{ORDER STATE VALUE:GStatus}
{ORDER TAGS}

[ORDERS:Void]
-- Nothing will print for void lines

[ORDERS GROUP|ORDER STATE:NStatus]
<C00>**{GROUP KEY}**

[ORDER TAGS]
-- Format for order tags
<J00> * {ORDER TAG NAME} | {ORDER TAG PRICE}

[ENTITIES:Table]
-- Table entity format
<L00>Table: {ENTITY NAME}

[ENTITIES:Customer]
-- Customer entity format
<J00>Customer: {ENTITY NAME} | {ENTITY DATA:Phone}

[TAXES]
<J00>{TAX NAME} {TAX RATE}5 |{TAX AMOUNT}

I just want to verify, that after making changes to the rule, you ran a new transaction?

If you don’t mind, and you feel comfortable enough, could you Private Message me a copy of the database?

Hi Bob!

I apologize for the late reply, it’s been a bit of a crazy week, didn’t have time to work on the POS at all!

If it was still okay with you, would you be able to check it out?

and yes, I am making new transactions after saving the rules.

Yes, I’ll take a look at it. It might be a few days, though.