Issue with taxes and tip on my printer template

@emre
how are you, i did a printer template trying to figure it out how to custom print, taxes and tips for my system, it was ok until i decide to add the tips button on my screen and to add a tips option message to my customers.
here is my template

<EB>
<J10>
<J11>Mi Sitio Restaurant
<DB>
<J00>{TICKET DATE} {TICKET TIME}|{USER NAME}  #{TICKET NO}
{ENTITIES}
<F>-
{ORDERS}
<F>=

{DISCOUNTS}

{TAXES}

{SERVICES}


<EB>
-- <R00>TOTAL :[=(TN('{TICKET TOTAL}')+TN('{TAX TOTAL}'))]
<J11>TOTAL :{TICKET TOTAL}
<DB>


<EB>
<DB>
<F>-
<J00> | TIPS |15% = [=F(TN('{TICKET TOTAL}')-TN('{TX TOTAL}'))*0.15)]
<J00> | |18% = [=F(TN('{TOTAL TAXABLE AMOUNT}')*0.18)]
<J00> | |20% = [=F(TN('{TICKET TOTAL}')*0.2)]
<F>
<F>
<J10>TIPS |______________________
<F>
<J10>TOTAL | ______________________
<J10>
<F>*
<L00>*        THANK YOU       *
<F>*
<DB>
<F>
<J10>
[DISCOUNTS]
[<J00>Total FREE:|{ORDER STATE TOTAL:Gift}]

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

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

[ORDERS:Void]
-- Do not print 

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

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

[SERVICES]
-- [<R00>Subtotal :{PLAIN TOTAL}]
<R00>{CALCULATION NAME} ([=F(TN('{CALCULATION AMOUNT}'),'##')])%: {CALCULATION TOTAL}
<EB>


[TAXES]
[<R00>Subtotal: {PLAIN TOTAL}]
<R00>TAX :{TAX TOTAL}

The problem is the follow.
tips suggestion message is calculation the total amount including tax and multiply by the %$$. 15,18 or 20.
as you can see i tried to use another variables to see if it work right but no luck.

thanks

Typo: {TX TOTAL} is not a valid Printer Tag.

1 Like

thank, i see that but still not working as i need

Setup a tax template and use [TAXES] formatting area.

@kendash

hi, sorry but can you give me an example.
i already have a {TAXES} setup. is that what are you talking about

I’m sorry I meant calculation. Look up tips on forum.

Ok I am tired I read it wrong. Ignore my response. Try {TAX TOTAL}

Actually just use {PLAIN TOTAL} and multiply it by your percent.

1 Like

Your brackets do not match. Try this (extra “(” before first TN), and keep the spacing as shown:

<J00> | TIPS |15% = [=F( (TN('{TICKET TOTAL}')-TN('{TAX TOTAL}')) * 0.15 )]
1 Like