Trying to understand Ticket Templates

Ok, think I might nave it…
Your [quote=“marios, post:4, topic:8641”]
{ENTITY NAME:Customer}
[/quote]
in [quote=“marios, post:4, topic:8641”]
[LAYOUT] – General layout <EB> <BMP>C:\Users\Marios\Documents\SambaPOS4\images\free_coffee_1.bmp <T>Coffee Shop <DB> <C>{DOCUMENT DATE} {DOCUMENT TIME} <C>{ENTITY NAME:Customer} <L> <EB> {ORDERS} <DB> <L> {TRANSACTIONS} <C>NO CASH VALUE <F>* [TRANSACTIONS] <C>{AMOUNT} € <L> <F>- <EC> – <QR>{SOURCE ACCOUNT} – <BAR>{SOURCE ACCOUNT} <EL> <J00>{SOURCE ACCOUNT} | {AMOUNT} € [ORDERS] – Default format for order <J00>{QUANTITY} {NAME} {ORDER TAGS}
[/quote]

Doesn’t work because its a transaction document!
Its reporting on account transaction not ticket/entity.
and the ticket is showing transaction not orders.

1 Like

If this is true then it would have helped to share that information early on in the discussion.

The first one looks like a Gift Certificate Template, and the way it reads is for printing Transactions, not Orders. It is not a regular Bill/Ticket Template.

  • instead of Customer, you need to use {ENTITY NAME:Gift Certificate}
  • there should be no {ORDERS} placeholder and no [ORDERS]section in the GC Template

A normal Bill/Ticket Template would not have any of these elements:

<C>{DOCUMENT DATE} {DOCUMENT TIME}
{TRANSACTIONS}
<C>NO CASH VALUE
<F>*
[TRANSACTIONS]
<C>{AMOUNT} €
<L>
<F>-
<EC>
-- <QR>{SOURCE ACCOUNT}
-- <BAR>{SOURCE ACCOUNT}
<EL>
<J00>{SOURCE ACCOUNT} | {AMOUNT} €

A Bill/Ticket Template would look something like this:

[LAYOUT]
-- General layout
<EB>
<BMP>C:\Users\Marios\Documents\SambaPOS4\images\free_coffee_1.bmp
<T>Coffee Shop
<DB>
{ENTITIES}
<F>-
{ORDERS}
<F>=
{DISCOUNTS}
<F>-
{TAXES}
<J00>Tax Total:|L{TAX TOTAL}
{SERVICES}
<EB>
<J10>TOTAL:| {TICKET TOTAL}
<DB>
<F>=
{PAYMENTS}

-- all placeholders above refer to these sections

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

[PAYMENTS]
<J00>{PAYMENT NAME}: | {TENDERED}
<L00>Desc:{DESCRIPTION}

[ORDERS]
<J00>{QUANTITY} {NAME}| {TOTAL PRICE}
{ORDER TAGS}

[ORDER TAGS]
<J00>    {ORDER TAG QUANTITY} {ORDER TAG NAME}| {ORDER TAG PRICE}| [=F((TN('{QUANTITY}')*TN('{ORDER TAG PRICE}')),'0.00'))]

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

[ENTITIES:Customer]
<J00>Cust: {ENTITY NAME}|Bal: {ENTITY BALANCE}

[TAXES]
<J00>Tax {TAX NAME} ({TAX RATE}%):| L{TAX AMOUNT}

[SERVICES]
<J00>{CALCULATION NAME} ([=F(TN('{CALCULATION AMOUNT}'))]):| {CALCULATION TOTAL}
1 Like

As for balance… when are you triggering the second screen update?
If its on payment processed the balance will not be up to date as the transactions are not generated untill the ticket is closed.
You will either need to to BALANCE + TICKET TOTAL as a rough bodge to rework your second screen flow.

This would depend on what he is wanting to be customer name, the other screenshot shows a customer name working so expect he is doubling up on entities (customer details & gift voucher)

When I did my gift voucher setup I added a custom field for the voucher customer name and called it with;
{REPORT ENTITY DETAIL:EC.Customer Name:(EN={ACCOUNT})} (sorry if this is not 100% as do not have that setup loaded at the minute

@JTRTech, your setup is way beyond the mistakes that are being made here. I made it clear that he was using a Transaction Template, and since it has a GC Account number in it, he obviously has the GC setup installed.

I wonder if people even bother reading sometimes…

I need to take a break from this today I guess. Frustrated and lots of “real” work to do for my venues anyway…

1 Like

I get that, was purely saying that to me it looked like he was trying to add the customers name to the transaction receipt by doubling up the entities to use both gift voucher and customer entities as his other screenshot showing a customer name of ‘asdfgh’
And was offering a idea that if he wanted customer name (like i did in my alternative method) that would be a solution which should be useable with your GC setup.

Wow a lot of informations …
First of all Thank you for your answers …
The most of waht you suggested i have already try them …
(I always search the forum for solution and i post only if I can’t find any or if i’m desperate :grin:)
For example

  1. I want the name of the customer who bought the ticket
  2. Gift Certificate already used but nothing …

{ENTITY NAME:x} will not work on a transaction document template as its looking at accounts not entities.

Did you try what he said there?

Can you show your rule thats executing it?

yep

This is the transaction document template from QMcKays tutorial;

No mention of entity name there…

{ENTITY NAME:Gift Certificate} would give gift certificate number on the receipt when sales re charged to the account.

It can but you will need to do some additional modifications.

Can you show your rule thats firing that?

I have many Gift Certificates with many different names so i’t trying a solution not to create rules,actions and templates for each one.


Do you mean you have many gift certificate products?
QMcKays method if I remember right used products to sell and define the value of the voucher/account credit.

Even though you have different gift voucher products your gift voucher entities are still all the same gift certificate entity type and account type right?

Ok I apologize I was working with no knowledge of the Tutorial. I have the tutorial installed so let me study it then I will give you an answer.

@JTRTech in the QMcKay’s tutorial the template is this

[LAYOUT]
-- General layout
<EB>
<T>The Best Restaurant
<DB>
<J00>{DOCUMENT DATE} {DOCUMENT TIME}
<L>
<EB>
<C01>GIFT CERTIFICATE
<DB>
<L>
{TRANSACTIONS}
<C>NO CASH VALUE
<F>*
[TRANSACTIONS]
<C11>{AMOUNT}
<L>
<F>-
<EC>
-- <QR>{SOURCE ACCOUNT}
-- <BAR>{SOURCE ACCOUNT}
<EL>
<J00>{SOURCE ACCOUNT} | {AMOUNT}  

At this point GIFT CERTIFICATE what ever name your gift has it will always say GIFT CERTIFICATE

I’m trying to change the name according to the cartificate name that customer buy …

This line is fixed test, it not ment to change…
Its like a title…
I know exactly what your trying to do though :smile:

Ok on the Gift Card printout you will NOT be able to pass the customers name that purchased it. If you wish to do this then you need to store it as a program setting and then use the program setting tag in your transaction template.

The transaction template has no idea about Entity Name its simply printing a transaction.