Sort Orders as you like

Is any way sort item group in ticket printing ,as its printing by alphabet order so the courses not in correct order thanks.

You define the order in the Group Key Section ie;

[ORDERS GROUP|ORDER STATE:Course:Starters,Mains,Desserts]

This is a sample of my kitchen ticket template;

[LAYOUT]
<C00>
<C00>
<C00>
<C00>
<C22>ORDER {TICKET NO}
{ENTITIES}
<J00>Date:{TICKET DATE}|Time:{TIME}
<F>-
{ORDERS}
<C00>
<C00>
<C00>
<C00>
<C00>
<B>
[ORDERS]
<EB>
<L01>{QUANTITY} x {NAME}
<DB>
{SORTED ORDER TAGS}

[ORDERS GROUP|ORDER STATE:Course:Starters,Mains,Desserts]
<C00>
<F>-
<C11>** {GROUP KEY}  **
<C00>x{QUANTITY SUM}
<C00>

[ORDERS:Void]
<J10>{QUANTITY} x {NAME}|**Void**
{SORTED ORDER TAGS}

[SORTED ORDER TAGS]
-- Format for order tags
<L00>     [=(TN('{ORDER TAG QUANTITY}') > 1 ? ' {ORDER TAG QUANTITY}x ' : '    ')] {ORDER TAG NAME}

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

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

Which gives;

                 ORDER 53
                Table: T06
Date:15/10/2015                 Time:19:32
------------------------------------------
------------------------------------------
             ** Starters  **
                    x1
1 x Starter
------------------------------------------
               ** Mains  **
                    x2
1 x Main
1 x Special
------------------------------------------
             ** Desserts  **
                    x1
1 x Dessert
          Sticky Toffee
          Custard

My setup uses product caption tags and a order added rule to turn the tag into a state for the course.
I also have ask question which allows selecting of orders and change of course if say child wants a main served with the starters.

1 Like

Hi JTR,
I did this as you say, but i have a little issue.

When i have a order tag in some item, this tag is not appearing.

For example:
1 x Main
*Additional

Thanks in advance and Regards,

Cant help much without any info. You need to offer more than that for any help, screenshots, copy of your template etc.

This is my template.

[LAYOUT]
Ticket
Usuario:{USER NAME}
Fecha:{TICKET DATE} Hora:{TIME}
Mesa:{ENTITY NAME:Table}
Cliente:{ENTITY NAME:Customer}
Ticket N°:{TICKET NO}
Estado:{TICKET TAG:Estado}
– -
{ORDERS}
[ORDERS]

- {QUANTITY} {NAME}

{SORTED ORDER TAGS}

[ORDER TAGS]
– Format for order tags
* {ORDER TAG NAME}

[ORDERS GROUP|PRODUCT GROUP]

-
** {GROUP KEY} **

Total={QUANTITY SUM}

[ORDERS:Void]
- {QUANTITY} {NAME}|Anulado

Now if you see “quesillo de cabra” (at the very end) has an order tag that is not being showing in the ticket.

tried few things, but i cant make the order tag appears.

Thanks for your help.

You need to match your {SECTIONPLACEHOLDER} with a [SECTION]

You have this Section Placeholder:

{SORTED ORDER TAGS}

But you have no matching [SECTION] for that.

Change this Section:

[ORDER TAGS]

to this:

[SORTED ORDER TAGS]
1 Like

Thanks Q!
Once again you came with the right answer!
Best regards!

How can we control how order tags sorting appears in pos system. I know iv seen it before where it was sorting on pos screen by “Update Time”