Aksel
February 21, 2014, 1:45pm
1
Wanting to swich from V2 to V4 but have been stuck since several hours on how to redo the coding for the printer templates. I just cant get my head around the new system. Can somebody help me convert these three templates from V2 to V4 format please:
Printer Template 1 (Tax Invoice Template)
<J00>
<J00>Date:{TICKET DATE}|Table No:{TABLE}
<J00>
<F>-
<J00>- {QUANTITY} {NAME}|{TOTAL AMOUNT}
* {PROPERTIES}
<J00>* {QUANTITY} {NAME} | GIFT
<F>-
<J00>{IF DISCOUNT}
<EB>
<J10>Total:|{TICKET TOTAL}
{BALANCE}
<DB>
<L>
<J00>============== Tax Details ===============
<J00>GST Total :| {TAX TOTAL}
<J00>
<EB>
<F>*
<L> * Thank you for dining with us! *
<F>*
<DB>
Printer Template 2 (Kitchen Orders Template)
<J02>{USER NAME}
<L>
<L00>Ticket No:{TICKET NO}
<J00>Date:{TICKET DATE}
<EB>
<J01>|Time:{TIME}
<L>
<J01>|{TICKET TAG:Guest Count}
<L>
<F>-
<L>
<J01> |Table No:{TABLE}
<F>-
<L>
[<J01>Order Note
<L>
<L>
<J00>{NOTE}
<L>]
<DB>
<C00>
{ITEM TAG}
<F>-
<L>
<EB>
<J01>{QUANTITY} {NAME}
* {PROPERTIES}
<DB>
<EB>
<J01>{QUANTITY} {NAME}
* {PROPERTIES}
<DB>
<EB>
<J01>**VOID**{QUANTITY} {NAME}
* {PROPERTIES}
<DB>
Printer Template 3 (Internal Invoice Template)
<C01>Internal Docket
<L>
<L>
<J10>Date:{TICKET DATE}|Table No: {TABLE}
<J10>|{TICKET TAG:Guest Count}
<J10>|Ticket Number: {TICKET NO}
<L>
<J10>Order Taken: {TICKET TIME}
<J10>Time of Payment: {TIME}
<L>
<F>-
<J10>- {QUANTITY} {NAME}|{TOTAL AMOUNT}
* {PROPERTIES}
<J10>* {QUANTITY} {NAME} | {TOTAL AMOUNT} GIFT
<J10>* {QUANTITY} {NAME}|{TOTAL AMOUNT} VOID
* {PROPERTIES}
<EB>
<F>-
<J10>{IF DISCOUNT}
<J10>Payment TOTAL:|{PAYMENT TOTAL}
<J10>Tendered|${TICKETTAG:Tendered}
<J10>Change Due|${TICKETTAG:Change Due}
<DB>
<L>
<J00>============== Tax Details ===============
<J10>GST Total :| {TAX TOTAL}
<L>
<L>
<C01>Internal Docket
<L>
Any help would be much appriciated.
Anybody please?
JohnS
February 21, 2014, 11:24pm
2
Printer Template 1
[LAYOUT]
-- General layout
<J00>
<J00>Date:{TICKET DATE}|Table No:{ENTITY NAME:Table}
<J00>
<F>-
{ORDERS}
<F>-
{DISCOUNTS}
<J10>Total:|{TICKET TOTAL}
{BALANCE}
<DB>
<L>
<J00>============== Tax Details ===============
<J00>GST Total :| {TAX TOTAL}
<J00>
<EB>
<F>*
<L> * Thank you for dining with us! *
<F>*
<DB>
[DISCOUNTS]
<J00>{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}
[ORDERS]
-- Default format for orders
<J00>- {QUANTITY} {NAME}|{TOTAL AMOUNT}
{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}
That’s all I can do now. Have to go and do some work
1 Like
Aksel
February 22, 2014, 1:34am
3
John you are AMAZING !!!
I think I can reverse engineer what you did and apply it to thePrinter Templates.Fingers crossed I dont get too stuck
Aksel
February 22, 2014, 3:58am
4
So i reverse engineed what you did and it works a treat ! I sill dont understand what I was doing but it works!
My last question before I install this in our restaurant is that I would also like to print on the receipt whether the customer paid with credit card or by cash. How do I go about that? (never got this function to work on V2 either)
JohnS
February 22, 2014, 5:46am
5
Use {PAYMENT} printer tag
Aksel
February 22, 2014, 7:21am
6
Can you elaborate on that a bit please
JohnS
February 22, 2014, 7:46am
7
JohnS
February 22, 2014, 8:25am
8
This is a Receipt Template I designed for a customer
[LAYOUT]
-- General layout
<EB>
<C11>Tumut Motorcycle
<C11>Accessories Pty Ltd
<L>
<C00>78 Adelong Road, Tumut NSW 2720
<C00>Phone: (02) 6947 1797 Fax: (02) 6947 1293
<C00>ABN: 89 092 507 830
<DB>
<L>
<C00>Website: www.tmatumut.com.au
<C00>Email: sales@tmatumut.com.au
<L>
<J00>Date: {TICKET DATE}|Tax Invoice:| {TICKET NO}
<J00>Time: {TIME}|Sales Rep: {ENTITY NAME:Staff}
<L>
{ENTITIES}
<L00>------------------ Items -------------------
<L>
{ORDERS}
[<L00>------------------ Notes -------------------
<L>
{NOTE}
<L>]
<L00>------------------ Total -------------------
{DISCOUNTS}
-- [<J00>Total Gift|${ORDER STATE TOTAL:Gift}]
<J00>GST (Inc)|$[=F(TN('{TICKET TOTAL}') - TN('{TICKET TOTAL}')/1.1)]
<EB>
<J01>Total|$ {TICKET TOTAL}
<DB>
<J00>Tendered|${TENDERED TOTAL}
<J00>Change|${CHANGE TOTAL}
[<L00>----------------- Payment ------------------
{PAYMENTS}]
<F>-
<C10>T H A N K Y O U
<L>
<L>
<C00>Returns only accepted within 7 days
<C00>from purchase and in original packaging.
[DISCOUNTS]
<J00>{CALCULATION NAME}[=F('{CALCULATION AMOUNT}')]|{CALCULATION TOTAL}
[PAYMENTS]
<J00>{PAYMENT NAME}|${PAYMENT AMOUNT}
[ORDERS]
-- Default format for orders
<L00>{NAME}
<J00>{ORDER TAGS}|{QUANTITY}x ${TOTAL}
<L>
[ORDERS:Gift]
-- Format for gifted orders
<L00>{NAME}
<R00>{QUANTITY}x *GIFT*
{ORDER TAGS}
<L>
[ORDERS:Void]
-- Nothing will print for void lines
[ORDER TAGS]
-- Format for order tags
* {ORDER TAG NAME} - RRP ${PRICE}
[ENTITIES:Customer]
-- Customer entity format
<C00>Account: {ENTITY NAME}
<C00>Balance: $[=F(0-TN('{ENTITY BALANCE}'))]
<L>
[ENTITIES:Layby]
-- Customer entity format
<C00>Layby: {ENTITY NAME}
<C00>Balance: $[=F(0-TN('{ENTITY BALANCE}'))]
<L>
[ENTITIES:Gift Certificate]
-- Customer entity format
<C00>Gift Certificate: {ENTITY NAME}
<C00>Balance: $[=F(0-TN('{ENTITY BALANCE}'))]
<QR>{ENTITY NAME}
<L>
4 Likes
madiha
May 20, 2014, 11:53pm
9
@JohnS the above reeipt template was a great help!!! thanks in deed.
can we remove receipt header space
beacuse when i print a receipt it leaves some space which indicates the header space i think
and when use tag - it prints ---- till the start of next line…where i am suppose to change the setting
JohnS
May 21, 2014, 12:01pm
10
Can you post a sample printout and also your printer template.
madiha
May 23, 2014, 5:26pm
11
@JohnS here is the sample
[LAYOUT]
-- General layout
<BMP>C:\logo.bmp
<EB>
<C11>BAR & FOOD RESTAURANT
<L>
<C00>PHONE: 65-62961222
<DB>
<L>
<J00>Date:{TICKET DATE}|RECEIPT No:| {TICKET NO}
<J00>Time:{TIME}|SALES REP:{ENTITY NAME:USER NAME}
<L>
{ENTITIES}
<L00>----------------ITEMS-----------------------
<L>
{ORDERS}
[<L00>---------------NOTES----------------------
<L>
{NOTE}
<L>]
<L00>---------------------TOTAL-------------------
{DISCOUNTS}
--[<J00>Total Gift:|${ORDER STATE TOTAL:Gift}]
<EB>
<J10>Total:|${TICKET TOTAL}
<DB>
<J10>AMOUNT PAID:|${TENDERED TOTAL}
<J10>CHANGE DUE:|${CHANGE TOTAL}
[<L00>------------PAYMENT---------------------
{PAYMENTS}]
<F>-
<C10>T H A N K Y O U
[DISCOUNTS]
<J00>{CALCULATION NAME}[=F('{CALCULATION AMOUNT}')]|{CALCULATION TOTAL}
[PAYMENTS]
<J00>{PAYMENT NAME}|${PAYMENT AMOUNT}
[ORDERS]
-- Default format for orders
<L00>{NAME}
<J00>{ORDER TAGS}|{QUANTITY}X ${TOTAL PRICE}
<L>
[ORDERS:Gift]
-- Format for gifted orders
<L00>{NAME}
<J00>{QUANTITY}X *GIFT*
{ORDER TAGS}
<L>
[ORDERS:Void]
-- Nothing will print for void lines
[ORDER TAGS]
-- Format for order tags
<J00> * {ORDER TAG NAME} |$ {ORDER TAG PRICE}
[ENTITIES:Customer]
-- Customer entity format
<C00>Customer: {ENTITY NAME}
<C00>BALANCE: $[=F(0-TN('{ENTITY BALANCE}'))]
<L>
[ENTITIES:Gift Certificate]
-- Customer entity format
<C00>Gift Certificate: {ENTITY NAME}
<C00>BALANCE: $[=F(0-TN('{ENTITY BALANCE}'))]
<QR>{ENTITY NAME}
<L>
QMcKay
May 23, 2014, 5:35pm
12
To avoid wrapping to the next line, try reducing the Line Character Count
setting by 2 in your Printer settings.
Settings > Printers > Ticket Printer
Reducing the header space on a print is specific to the printer (driver), and you may not be able to decrease it any further - this allows room for CUT.
1 Like
madiha
May 25, 2014, 8:34am
13
ok will try n let u know but what about the logo why didnt it print?
<EB
BAR & FOOD RESTAURANT
PHONE: 65-62961222
<DB
why blue button not shown in bold and not in centre
JohnS
May 25, 2014, 9:16am
14
Looks like your logo might be corrupt.
Have you also made sure that the logo is black and white only.
madiha
May 30, 2014, 12:32pm
15
I have try with two different logo and made sure its black and white still the logo is not printing
JohnS
May 30, 2014, 12:52pm
16
Let me guess, an Epson U220 dot matrix printer ?
madiha
May 30, 2014, 2:37pm
17
yes its epson tm u220 dot matrix so it means cant print on dot matrix
but during the test page it does print the windows logo
JohnS
May 30, 2014, 11:58pm
18
We seem to have issues with the U220 not handling the print outs properly.
As I’ve guessed even TMU220 does not support this command but it resets font size. I’ve implemented a small feature to skip line formatting.
[image]
I’ve added two xct commands to enable double height and removed font size settings from order’s J tag.
This is my result. The modified version is on the back.
[image]
It will be available on next update.
madiha
May 31, 2014, 4:42am
19
ok thanks … so the - was printing till the next line because of the dot matrix issue?
JohnS
May 31, 2014, 4:53am
20
No. It’s because your Line Character Count in Printer setup is too high.