Author Topic: Printing Customer names on tickets  (Read 14339 times)

prismbeer

  • Newbie
  • *
  • Posts: 32
Printing Customer names on tickets
« on: December 16, 2011, 08:44:08 pm »
What would the syntax be to have a customer name print on the tickets?

Thanks!

Jack

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: Printing Customer names on tickets
« Reply #1 on: December 17, 2011, 03:49:45 am »
These are the possible values:

{ACC NAME} Account Name
{ACC ADDRESS} Account Address
{ACC PHONE} Account Phone

You can print customer name on ticket by adding a {ACC NAME} token to header template. It will be something like

<L00>Customer : {ACC NAME}

But there is a problem. If there is no customer selected on ticket there will be an empty Customer: label on bills. To avoid this format this line as:

<L00>[Customer : {ACC NAME}]

If you add square brackets like that SambaPOS will skip the part in brackets if token is empty value. You can use this syntax for other values too.

pecanhouse

  • Newbie
  • *
  • Posts: 15
Re: Printing Customer names on tickets
« Reply #2 on: March 15, 2012, 01:51:39 pm »
How can i print the account balance before and after a transaction please.