View Categories

Support for individual person billing sitting in the same table

1 min read

This script enable individual billing for different person sitting in the same table


Maintenance > Resources
In Ticket.Buttons add the below lines:

<button key="person" name="1" code="Script.Person1"></button>
<button key="person" name="2" code="Script.Person2"></button>
<button key="person" name="3" code="Script.Person3"></button>
<button key="person" name="4" code="Script.Person4"></button>

In Ticket.Line, just after <line> put the below line:

<column name="Person" width="3" align="center" value="${ticketline.getProperty(`person`,`1`)}"/>

Create a new text resource and name it Script.Person1 and add the below line

ticket.setProperty("person", "1");

Create a new text resource and name it Script.Person2 and add the below line

ticket.setProperty("person", "2");

Create a new text resource and name it Script.Person3 and add the below line

ticket.setProperty("person", "3");

Create a new text resource and name it Script.Person4 and add the below line

ticket.setProperty("person", "4");

Add the below line event.addline

line.setProperty("person",ticket.getProperty("person","1"));

Add the below line in Roles

<class name="person"/>

Save & restart

Use the bill splitting feature to to generate individual bills. Use the Person column to identify the person.

0 Comments

Leave a Reply

Arrow-up