Quantcast
Channel: SambaClub Forum - Latest topics
Viewing all articles
Browse latest Browse all 8860

Issue with Printing Ticket Tags

$
0
0

@damian wrote:

I am setting up Samba to now enter takeaway and delivery orders where a name and (possibly) address is used.

I've decided the easiest way to do this is to use ticket tags.

I've add a ticket tag called "Customer" and created a subtag called "Address".
All works fine except for when i am printing tickets.

I am using the standard ticket template so i wrapped the name and address field in brackets so they would not print for a normal dine in order. And also, we don't want address to be printed for a takeaway order.

The relevant printer tag looks like this:

[<C00>Customer: {TICKET TAG:Customer}] <-- Doesn't work.
[<C00>Address: {TICKET TAG:Customer.Address}]  <-- Works perfectly

The problem is with the top line. Wrapped in brackets, the customer name does not print, as if the value was empty.

HOWEVER, and this is the weird thing, if i remove the brackets in the template like this:
<C00>Customer: {TICKET TAG:Customer}
.... it works and prints the customer name without issue.

The problem i then have though is that the dine in tickets where a customer name is not taken shows the customer line with nothing there.

I thought about simply creating two sub tags, one for name and other for address, however doing this means that the system wrongly detects that a name has not been saved and prompts the user before they are allowed to settle the ticket.

Is this an issue or am I missing something ?

Any help would be greatly appreciated.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 8860

Trending Articles