I have a customer entity type and have added in the entity type settings for the name and all address fields to be printed on the ticket template. It seems to work but the text is wrapped when printed so the address is not shown. What I want it to do is fall over to the next line so full name and address unfo is shown. I have experimented with etc but as this is the entities section then I seem unable to format it…
I’ve also got the same problem with the item names as the text is truncated before the portion size shows, so when drink tickets are printed to the bar then they dont know what size to serve.
(Also while I am here can anyone also tell me how to show a ticket entity value on the same template!).
Thanks in advance,
Use {ENTITY DATA:X} do display the fields formatted how you want seperatly rather than squash them all in to name format.
Guessing you have a smaller 52mm printer from these questions.
You could drop portion to next line by using the raw name and portion seperatly rather than the automatic product.portion format.
As a tip look on the right of the template for all the tags available for your template.
Thanks - not sure I follow though - the drinks template is below. We’re using a 78mm printer set up as windows printer.
[LAYOUT]
<T>DRINKS ORDER
<L00>Date:{TICKET DATE}
<L00>Time:{TIME}
<L00>Table:{ENTITY NAME:Table}
<L00>Ticket No:{TICKET NO}
<F>-
<F>-
<F>-
<F>-
{ORDERS}
[ORDERS]
<L00>- {QUANTITY} {NAME}
{ORDER TAGS}
[ORDERS:Void]
<J00>- {QUANTITY} {NAME}|**Void**
{ORDER TAGS}
[ORDER TAGS]
-- Format for order tags
<L00> * {ORDER TAG NAME}
<F>-
<F>-
<F>-
This is my receipt template - same problem with full drinks titles being truncated and also my entity type ‘Diner Type’ isn’t populated either.
<L00>Department:{DEPARTMENT}
<L00>Type: {DINER TYPE}
<L00>Date:{TICKET DATE}
<L00>Time:{TIME}
<L00>{ENTITIES}
<L00>Ticket No:{TICKET NO}
<L00>Server:{USER NAME}
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J10>Total:|{TICKET TOTAL}
<J10>Tendered: |{TENDERED TOTAL}
{PAYMENTS}
<J10>Change: |{CHANGE TOTAL}
<DB>
<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]
<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}
DINER TYPE is not a valid tag.
Hi all I’ve done raw name and portion seperately but still have the problem with long names being truncated…
Can anyone give me the receipt code for an untruncated product name, untruncated portion, order tags below and right aligned price please?
Show what you have?
Your obviously limited by the print size of the printer in escpos mode do if you have a 50 letter long product name your obviously not going to get it to fit regardless.
It’s in windows mode as we want to print images etc. Here is a sample post. Will post my current recepit code. Paper is 78mm, receipt width is limited in Samba to 28 character as if we add any more we just loose the text of the edge
Here is my current receipt text (changed back now as the former didn’t work);
<T>Hotel
<L00>Department:{DEPARTMENT}
<L00>{ENTITY DATA:DINER TYPE}
<L00>Date:{TICKET DATE}
<L00>Time:{TIME}
<L00>{ENTITIES}
<L00>Ticket No:{TICKET NO}
<L00>Server:{USER NAME}
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J10>Total:|{TICKET TOTAL}
<J10>VAT Included: |{TAX TOTAL}
<J10>Tendered: |{TENDERED TOTAL}
{PAYMENTS}
<J10>Change: |{CHANGE TOTAL}
<DB>
<F>=
<C10>T H A N K Y O U
<C00>VAT Reg No: GB863883184
<F>=
<F>=
<F>
[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}
You could try setting it to HTML printer type and use the SPAN tags
Yes thanks I did consider that. This fix kind of works but it still won’t fall over onto the next line if the product title is long (like a wine). Is there no tag to force Samba to overflow onto the next line as the character limit is met?
<L00>- {QUANTITY} {PRODUCT NAME} / {PORTION}
<J00>|{TOTAL PRICE}
{ORDER TAGS}
The <J00> and <L00> etc tags are justifying it and will not wrap. This is why I suggested using SPAN instead.
Ok thanks. As a html printer will I meed to chanhe anything else?
