Need your great help...!

hello…

today I bought 1 Epson TM-T20II Printer for printing ticket and bill receipts.

I did add the printer and it works pefectlywith samba4. the only thing i would like to change template is as follow:

  1. Our company name
  2. Our Logo
  3. Our Address
  4. Our VAT number
  5. Date
  6. Time
  7. Reduce size of letters for products.I wish that amount of product, product and price are on the same line.
  8. Total Amount ( price ) with €
    9)Text: Thank you very much for your visit

So please can you help me out?

Thank you very much in advance

Mike

I Have included my print template which does all the points you have stated.

  1. You need to create a logo bitmap and amend

<bmp>C:\epos pics\logo.bmp

to direct it to the computer file where your logo is stored.

1 & 2) Amend name the address as required.

  1. My Vat number is at the bottom of the receipt but you could move it to the top if required.

5 & 6) Time & Date is on the template

  1. the size on this template should be small enough and each product quantity, description and price are on the same line.

  2. Total Amount is on here in £ for me but you need to select $

  3. amend

<C11>T H A N K Y O U

with your required text

Hope this helps

[LAYOUT]
-- General layout
<L00>
<L00>
<bmp>C:\epos pics\logo.bmp
<C00>Main Road, Dinnington, 
<C00>Newcastle Upon Tyne, NE13 7JS
<C00>www.thelastdaysoftheraj.co.uk
<C01>01661 59 8181
<C01>01661 59 8484
<L00>
<L12>Table:{ENTITY NAME:Table}
<L01>
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}
<DB>
<F>=
<F>
<C11>T H A N K   Y O U
<C00>Vat No: 214987385
<L00>
<L00>
<L00>

<C00>Like us on Facebook &
<C00> Please visit us again soon
<L01>
<L00>
<L01>

[ORDERS GROUP|PRODUCT TAG:Kitchen Group:Drink,Special,Appetiser,Starter,Main,Sides,Rice,Nan,Sundries,Beverage,Special]

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

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

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

[ORDERS]
-- Default format for orders
<J00>- {QUANTITY} {NAME}|{TOTAL PRICE}
{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}

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

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

You can save yourself a lot of time if you use the search feature of the forum and search for what you need help with before posting a new topic. This has been covered extensively on the forum already… It is unlikely you will get a timely response on topics that have already been covered on the forum previously.

Anyway here is a tutorial to get you started (note it is also in the search results…:wink: )

@bangkok please note you will need to amend the receipt for your own use - the one sid252uk posted uses order groups which unless you have them setup on your system, will not print correctly.

Thanks Mark, forgot to mention that :slight_smile:

1 Like

thank to both of you !! But can you tell me more about “amned” ?

thank you

mike

it is a typo. He meant amend, i.e. change.

1 Like

at the moment it looks like this :frowning:

Your character count is set too high for the printer.
Usual is arround 32 for 58mm and 42-48 for 80mm.

Do you need to print non-English characters? If not, in Manage > Settings > Printers, Ticket Printer, set Printer Type to Ticket Printer.

If you then also get the rows of --- wrapping to the next line, adjust the Line Character Count by the number of wrapped characters.

If you DO need to print non-English characters, you might not get them to print with Ticket Printer. You have to use HTML Printer.

But his text looks huge. I think he has it set to HTML printer, also looks like it because of the font. Either that, or maybe his printer is set to a non-English character set - if it’s a cheap Chinese one it might be set as Chinese which can make it print huge like that.

you guys are my heros…just as last…how i can put my logo in center position?

add white space each side of image is one way.
Other depends on if you are using HTML or escpos

This only works for ESC/POS mode (i.e. Ticket Printer in SambaPOS V4)

Put like this:

<EC>
<BMP>C:\path_to_image...
<EL>

NOTE: The <EL> is to reset back to left aligned otherwise your whole receipt will be centered.

You can read about all formatting options here:

1 Like

thank you very much…worked ! Well I do know html coding…bust just wondering if the system will accept jpg instead bmp ?

Not sure in HTML but escpos will need bmp as processing is done on printer I believe.

Best thing is just try it. Like JTRTech says, it won’t work in ESC/POS mode, but might in HTML. If you use SambaPOS V5 you also have Document Printer which might also allow JPG.