English Boards > Support

printer temlate help

(1/3) > >>

fabos:
hi,

I need some help for printer template.


my ticket ow is composed like this

(from left to right)
no. of products
product name
prioce (no. of products * price)

ie.
2 pizza xxxxx   30000
2 coke  10000

My need is:

all the prices should be  aligned to the right. I was not able to find any code to be inserted to do this.
Nw the prices just follow the product name and it is difficult to read the ticket .

anyone could suggest me how to do that?

thanks in advance

JohnS:
Fabos,

In your printer template under Line Template use this

<J>{QUANTITY} {NAME}|  {TOTAL AMOUNT}

The <J> means Justify and the | splits the line left and right.

Some References
http://forum2.sambapos.org/index.php/topic,130.0.html
http://forum2.sambapos.org/index.php/topic,136.0.html

mozhi:
Hey John/Emre,

This is my samle Ticket Layout.

4-Flavors
Multicuisine Fine Dine Restaurant
Kasthuri Nagar
Bangalore
Ph:+91-9742274495TIN:ABCD1234
Date:25-02-2012Table No:B21
Time:21:03Ticket No:26
------------------------------------------
-Item Name RateQtyAmount
-Toast and Jam 1.50 1 1.50
-Bacon and Tomato 3.49 2 6.98
-Bacon and Cheese 3.49 2 6.98
==========================================

<J>VAT@14%: 2.16

Total: 17.62
******************************************
*Thank You for Dining With Us!!!*
******************************************

Note: I am using a pdf printer. If that is the cause, pls ignore the question, as i dont have a Ticket printer.
How do i configure the demo notepad printer. I tried configuring but I dont get it printed. pls provide Snapshot of printer configuration tab if possible.

My Question is I get Unnecessary lines when there is no Discount and No Gifts.
Is ther a way that these lines dont get printed  when the ticket doesn't have Discounts or Gifts .
I am

My Configuration is as follows:
<F>=
<EB>
<J10>[{IF DISCOUNT}]
<J10>[{SERVICE DETAILS}]
<J10>[Total Gift:|{GIFT TOTAL}]
<J10>Total:|{TICKET TOTAL}
{IF PAID}
<DB>
<F>*
<C10>*Thank You for Dining With Us!!!*
<F>*

Thanks in advance as usual..!!!

endrju:
Hey mozhi,
I think that in Ticket Template is a special line about Gifts. Put your line
<J10>[Total Gift:|{GIFT TOTAL}] there.

It should print your gift line only when it's selected.

JohnS:
I'm not currently in front of my computer, so I can't comment on your configuration just yet.

But with printing, PDF is proportional printing and will not print properly.
Change to Demo Printer(notepad) an then open notepad up and leave running in the background. When you print a ticket, flick to notepad and you will see the receipt.
Note: notepad will only show one size of text, so large text will show as the same size as the rest of the ticket.

The best and only true way to testing printing formats with a receipt printer.

The square brackets [] mean don't print if no details, so make sure the [ is before <J10>
Service details is pre formatted, you don't need <J10>

Navigation

[0] Message Index

[#] Next page

Go to full version