Ticket/Bill Printing Error

Items name and some other thing are miss from my Ticket/Bill during printing.
before a hour its working fine all the day but suddenly it is printing with this error.


My Ticket Template is this

[LAYOUT]
-- General layout
<BMP>C:\Program Files (x86)\SambaPOS5\Images\ticketlogo.bmp
<J10>Date:{TICKET DATE} | Time:{TIME}
<J00>Ticket No:{TICKET NO} | {ENTITIES}
<J00>Served By:{TICKET TAG:Waiter} | Guest:{TICKET TAG:Guest}
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}
<DB>
<F>=
<C00>Ticket Genrated By:{USER NAME}
<C00>For Your Suggestions & Complains Please Write
<C00>03057538661
<F>-
<C10>T H A N K   Y O U
<F>-

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

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

[PAYMENTS]
<F>-
<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
Table: {ENTITY NAME}

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

Hard to guess from screen shots but this probably relates with J tag measuring the line width. Can you create a backup and PM me the zip file? Also can you tell me these ticket numbers so I can try printing them?

1 Like

Thank you for the backup. This is strange because it seems to prints fine for me. Does it do the same thing when your re-print tickets? Which version are you using?

1 Like

Version is 5.16
its working fine when i start day but after some time the printing encountered this error. One thing is amazing that time KOT Printing is perfect just Ticket Printing encountered this error even re printing from tickets now i change Ticket template lets see whats happen today… from 2 hour its working fine with new template.

[LAYOUT]
-- General layout
<BMP>C:\Program Files (x86)\SambaPOS5\Images\ticketlogo.bmp
<C00>Date:{TICKET DATE} | Time:{TIME}
<C00>Ticket No:{TICKET NO} | {ENTITIES}
<C00>M.KOT Number:{TICKET TAG:KOTNumber}
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}
<DB>
<F>=
<C00>Ticket Genrated By:{USER NAME}
<C00>For Your Suggestions & Complains Please Write
<C00>03000545558
<F>-
<C10>T H A N K   Y O U
<F>-

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

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

[PAYMENTS]
<F>-
<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
Table: {ENTITY NAME}

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

Strange behavior indeed almost sounds like printer issue but I cant think of what would cause that.

@Jesse initially its also my thinking that its a Printer issue but same time All KOT printing perfect just Tickets Printing are Disturbing. Now i change to and testing it lets see and wait for the result. I will update if today this issue come again.

What did you change in particular?

[LAYOUT]
-- General layout
<BMP>C:\Program Files (x86)\SambaPOS5\Images\ticketlogo.bmp
<J10>Date:{TICKET DATE} | Time:{TIME}
<J00>Ticket No:{TICKET NO} | {ENTITIES}
<J00>Served By:{TICKET TAG:Waiter} | Guest:{TICKET TAG:Guest}
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}
<DB>
<F>=
<C00>Ticket Genrated By:{USER NAME}
<C00>For Your Suggestions & Complains Please Write
<C00>03000545558
<F>-
<C10>T H A N K   Y O U
<F>-

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

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

[PAYMENTS]
<F>-
<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
Table: {ENTITY NAME}

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

Change to this template
And this time this template is working fine. i think maybe anything is not supporting so i change it to

[LAYOUT]
-- General layout
<BMP>C:\Program Files (x86)\SambaPOS5\Images\ticketlogo.bmp
<C00>Date:{TICKET DATE} | Time:{TIME}
<C00>Ticket No:{TICKET NO} | {ENTITIES}
<C00>M.KOT Number:{TICKET TAG:KOTNumber}
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}
<DB>
<F>=
<C00>Ticket Genrated By:{USER NAME}
<C00>For Your Suggestions & Complains Please Write
<C00>03000545558
<F>-
<C10>T H A N K   Y O U
<F>-

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

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

[PAYMENTS]
<F>-
<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
Table: {ENTITY NAME}

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

No matter the leading tag, these lines might be confusing to the parser:

<J00>Ticket No:{TICKET NO} | {ENTITIES}
<C00>Ticket No:{TICKET NO} | {ENTITIES}

Because the [ENTITIES:Customer] section also contains a <J> tag …

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

In any case, the first lines I posted are probably not supported, because {ENTITIES} refers to a [SECTION] which can contain it’s own formatting tags.

You might do something like this instead:

<J00>Ticket No:{TICKET NO} | {ENTITY NAME:Table}
[<J00>{ENTITY NAME:Customer}|{ENTITY DATA:Customer:Phone}]
2 Likes

After some changes as shown in given template. Error was appear again after some sale. One thing is very different durring this error some prints are printed ok and now all prints are different from each other as you can see in screenshot. This time error is not only for Ticket KOT is also encountered this error but one print. i am very worried about it.

in this picture sone characters of itme names are missing

this is my current Ticket Template

[LAYOUT]
-- General layout
<BMP>C:\Program Files (x86)\SambaPOS5\Images\ticketlogo.bmp
<C00>Date:{TICKET DATE} | Time:{TIME}
<C00>Ticket No:{TICKET NO} | {ENTITIES}
<C00>M.KOT Number:{TICKET TAG:KOTNumber}
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}
<DB>
<F>=
<C00>Ticket Genrated By:{USER NAME}
<C00>For Your Suggestions & Complains Please Write
<C00>03000545558
<F>-
<C10>T H A N K   Y O U
<F>-

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

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

[PAYMENTS]
<F>-
<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
Table: {ENTITY NAME}

[ENTITIES:Customer]
-- Customer entity format
<C00>Customer: {ENTITY NAME} 
<C00>Customer Ph:{ENTITY DATA:Phone}

Seems like you ignored Q’s suggestion. Can you try changing this line as he suggested?

<C00>Ticket No:{TICKET NO} | {ENTITIES}

Section tags like {ENTITIES} or {ORDERS} not meant to be used inline.

1 Like

Sir i already try method told by @QMcKay but no solution i even try your default Ticket Template.
Now i try this

[LAYOUT]
<BMP>C:\Program Files (x86)\SambaPOS5\Images\ticketlogo.bmp
<C10>Date:{TICKET DATE} | Time:{TIME}
<C10>Ticket No:{TICKET NO}
<C10>Table: {ENTITY NAME}
<C00>Served By:{TICKET TAG:Waiter} | M.KOT:{TICKET TAG:KOTNumber}
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}
<DB>
<F>=
<C00>Ticket Genrated By:{USER NAME}
<C00>For Your Suggestions & Complains Please Write
<C00>03000545558
<F>-
<C10>T H A N K   Y O U
<F>-

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

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

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

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

[ORDERS:Gift]
-- Format for gifted orders
<L00>- {QUANTITY} {NAME}|**GIFT**

[ORDERS:Void]
-- Nothing will print for void lines

[ORDER TAGS]
-- Format for order tags
<L00> * {ORDER TAG NAME}

Sir i am very Upset. May be i cannot understand your method please provide me the template that you suggest. One thing is very Funny at the morning all templates work perfect but after some tickets this error occur

What do you mean by no solution? You mean default ticket template does same thing? If so that might not relate with templates as default template works fine for thousands of restaurants.

Are you using 5.1.60 version? there is no 5.16.

It helps great if you can spot with ticket is that.

1 Like

Sir. My version is 5.1.60

Sir you are right its work perfect in all restaurants may be there is any mistake by me that i cant find. So that i try your default template but the error printing same as before.

This error is only with Ticket Template while Kitchen Order Template is working perfect.

So you can try changing this line to a 3 column line to force recalculate column widths for order lines.

So that line becomes

<J00>Served By:{TICKET TAG:Waiter} | M.KOT:{TICKET TAG:KOTNumber}|
1 Like

sir i try this during printing error and printing become ok but for little time after that error occurred. then i decide to remove all J tags and i make this template

[LAYOUT]
<BMP>C:\Program Files (x86)\SambaPOS5\Images\ticketlogo.bmp
<C10>Date:{TICKET DATE} | Time:{TIME}
<C10>Ticket No:{TICKET NO}
<C10>{ENTITIES}
<C00>M.KOT:{TICKET TAG:KOTNumber}
<F>-
{ORDERS}
<F>-
<EB>
{DISCOUNTS}
[<R10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}
<DB>
<F>-
<C00>Ticket Genrated By:{USER NAME}
<C00>For Your Suggestions & Complains Please Write
<C00>03000545558
<F>-
<C10>T H A N K   Y O U
<F>-

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

[SERVICES]
<R00>{CALCULATION NAME}       {CALCULATION TOTAL}

[PAYMENTS]
<F>-
<R00>{PAYMENT NAME}       {PAYMENT AMOUNT}

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

[ORDERS:Gift]
-- Format for gifted orders
<L00>- {QUANTITY} {NAME}**GIFT**
{ORDER TAGS}

[ORDERS:Void]
-- Nothing will print for void lines

[ORDER TAGS]
-- Format for order tags
<L00> * {ORDER TAG NAME}

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

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

By this changes error gone but for one and half day, but its for the first time that error occurred after long time. this is preview

NOW i make one more little change and that is

<J00>{NAME}-{QUANTITY}|{TOTAL PRICE}
to
<J00>{QUANTITY}-{NAME} | {TOTAL PRICE}
after this change, printing work ok but I do not know how long .

Sir now this is a big issue for me.

Note: i am feeling issue is resolve for a time period after any little changes in template.

After 2 hour of changes error occurred again.

Hmm seems like we won’t be able to spot the issue. Screen shots of the ticket does not help a lot. You may consider updating to 5.1.61 and use new implemented W tag explained here. As you define columns for all rows separately that issue won’t happen again.

Sir to resolve this issue i am ready to update it to 5.1.61 but link of 5.1.61 is not available on the website.

I added you to beta group. Please search for 5.1.61 beta topic. Please create a backup before upgrading. You may need it if you need to downgrade.

1 Like