Printer Template Sort Orders by Order State:X

Hi @emre,
When I put ORDER STATE:Course in the Sort Orders list box, It doesn’t seem to do anything (same as leave it empty).
It will sort by the first Order State that was put in. I even put 1.Starter, 2.Main, 3.Dessert.
For ex:
Input:
1 Burger (Course: 2.Main)
1 Soup (Course: 1.Starter)

Output:

::::2.Main::::
1 Burger

::::1.Starter::::
1 Soup

Did I do anything wrong?

Thank you,
Sukasem

Edit: Add Screenshot

BTW: ORDER STATE has to be capital letter otherwise I get error message box popup

That is by design.

Try just Order State:X do not type it in instead just choose that from drop down. When I say Order State:X i mean exactly like that do not replace X with Course. It should just be a drop down option

Can you just copy the text from the template and paste it in here… for some reason the image is not rendering well on my browser I can barely read the text

   [LAYOUT]
<T>Ticket
<L00>Date:{TICKET DATE}
<L00>Time:{TIME}
<L00>Table:{ENTITY NAME:Table}
<L00>Ticket No:{TICKET NO}
<F>-
{ORDERS}
<L00>
[<T>Pickup: {TICKET TAG:Pickup Time}]

[ORDERS GROUP|ORDER STATE:Course]
<L>
<L>::::{GROUP KEY}::::

[ORDERS]
<L00>- {QUANTITY} {NAME}
{ORDER TAGS}

[ORDERS:Void]
<J00>- {QUANTITY} {NAME}|**Void**
{ORDER TAGS}

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

I did try Order State:X from the list box already but same result

Take a look here I think this described what you are doing.

The way I understand it it sorts alphabetically unless you specify prefixes on groups by numbers and use Product Tag sorting

I saw that one but that is for Product Tag.
This is Product Custom Tag which is created in Program setting

Hello all,Did anyone come up with a solution for this?i am facing the same trouble here.As in my case,i have taxable and non-taxable products.I already did automation to update the order state if the added product is taxable.But in the receipt i only can see the total tax and not for each products.

And here is my receipt template .

[LAYOUT]
-- General layout
<T>ABC PetShop
<J00>
<J00>Date:{TICKET DATE}|Receipt No:{TICKET NO}
<J00>
<F>-
{ORDERS}
<F>-
{DISCOUNTS}
<J00>GST Total :| {TAX TOTAL}
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}

<DB>
<L>
<J00>============== Tax Added ===============

<J00>
<EB>
<F>*
<L>    * Thank you for shopping with us! *
<F>*
<DB>

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

[PAYMENTS]
<J00>{PAYMENT NAME}|{PAYMENT AMOUNT}

[ORDERS]
-- Default format for orders
<J00>- {QUANTITY} {NAME}|{TOTAL AMOUNT}
{ORDER TAGS}
{ITEM TAG:GST}%

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

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

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

Calculations are ticket wide you will never be able too see per product using a ticket calculation. You should use a system similar to discounts tutorial.

Try this

[ORDERS]
– Default format for orders
- {QUANTITY} {NAME}|{TOTAL AMOUNT}
{ORDER TAGS}
GST {ITEM TAG:GST}% = [=F((TN(’{TOTAL AMOUNT}’)*TN(’{ITEM TAG:GST}’) /100),‘0.00’)]

1 Like

Thanks guys,thanks sukasem.Looks like there is no straight forward approach to print the dynamic order state on receipt.Anyway i have already implemented an alternative solution.have a wonderful day guys.

Are you using a ticket calculation for tax? Either via tax template or calculation type? If so you can not display this per order both are ticket wide only. You have to use a system similar to discounts tutorial that uses order tags and manual calculation expressions.

It does not matter if you use order states to initiate a calculation or not. If its a ticket calculation then its ticket wide only.

Hello Kendash,

I have already implemented the automation rule to add tax tag for each products on “Ticker order added” event.

All i need to do is to print those tax tags for each products on my receipt.

That’s a state. So how is it calculating the 6%

i think this image have more details.

I apply tax for product by mapping product group using tax template.

I want something similar to this.

my current template

 [LAYOUT]
-- General layout
<T>ABC
<J00>
<J00>Date:{TICKET DATE}|Receipt No:{TICKET NO}
<J00>
<F>-
{ORDERS}
<F>-
{DISCOUNTS}
<F>-
<J00>Taxable {TOTAL TAXABLE AMOUNT} 
<J00>GST @ 6% Total :| {TAX TOTAL}
<F>-
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}

<DB>
<L>
<J00>============== Tax Added ===============

<J00>
<EB>
<F>*
<L>    * Thank you for shopping with us! *
<F>*
<DB>

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

[PAYMENTS]
<J00>{PAYMENT NAME}|{PAYMENT AMOUNT}

[ORDERS]
-- Default format for orders
<J00>- {QUANTITY} {NAME}|{TOTAL AMOUNT}|({ITEM TAG:GST})
{ORDER TAGS}


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

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

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

You wont be able to show it per order because your using a tax template. You would need to use a system similar to how custom discounts work. Tax template is not calculated per order. You can exclude orders from it but that just removes it from the ticket calculation. It was never calculated on order level.

That’s clear kendah,thanks.Anyway my {TOTAL TAXABLE AMOUNT} is not working.Can i able to create a receipt template same as the example i have posted above?

If you were using order tags yes. But not with a tax template.

Now all i need is to print the total taxable amount,is that possible?

example
item a price:3 (taxable)
item b price:4 (taxable)
item c-3

total taxable amount:7

Can you give your example with real numbers?