Stuck on "Printer Templates"

Use {PAYMENT} printer tag

Can you elaborate on that a bit please

Have a look at http://sambapos.org/wiki/doku.php/en/creating_printer_templates

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

@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

Can you post a sample printout and also your printer template.

@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>

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

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

Looks like your logo might be corrupt.
Have you also made sure that the logo is black and white only.

I have try with two different logo and made sure its black and white still the logo is not printing

Let me guess, an Epson U220 dot matrix printer ?

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

We seem to have issues with the U220 not handling the print outs properly.

ok thanks … so the - was printing till the next line because of the dot matrix issue?

No. It’s because your Line Character Count in Printer setup is too high.

I AM FACING PRINTING PROBLEM AGAIN

THIS IS THE TEMPLATE I USE

but i am facing problem in discount and service tax

I couldn’t get if you are pointing a formatting issue or a calculation issue. What is your expected output?

1 Like

first i want to put

sucuklu pide 1x$18
*10% Discount - discounted price

well i would also like to know how put service tax in receipt

– one is auto printing by itself
—the other i put formula to print

so my question is how do i correct the format of the first one to be 10% Service Tax (Inc): $

and also want to know the correct to compute tax

i managed to have this format

QTY-------------ITEM---------------TOTAL

1 Kunefe $10.00
1 Salmon Govec $20.00

  • %10 Discount $19.00
    -----------TOTAL-----------------------
    Service Tax %10 $3.00
    Total: $32.00
    Amount Paid: $32.00
    Change Due: $0.00

 Thank You and Have a Nice Day      

but i still have this question in mind that how do i put discount like this
1 Salmon Govec $20.00

  • %10 Discount - $1.00

i have tried the order tag price but no use