# Tracking Number of Persons

**URL:** <https://forum.sambapos.com/t/tracking-number-of-persons/207>\
**Category:** V4 Tutorial\
**Created:** [December 31, 2013, 11:23am UTC](https://forum.sambapos.com/t/tracking-number-of-persons/207 "2013-12-31T11:23:06Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [December 31, 2013, 11:23am UTC](https://forum.sambapos.com/t/tracking-number-of-persons/207/1 "2013-12-31T11:23:06Z")

</div>

Ticket Tags are useful to track additional info with tickets. You can use Ticket Tags for almost anything but on this tutorial we’ll see how to use it to track Person Count.

We’ll start with adding a Ticket Tag from Management \> Tickets \> Ticket Tags.

 ![](https://forum.sambapos.com/uploads/default/original/3X/4/0/40c89125e4f3fddf0a0c8394e16ef74340b546e1.jpeg) 

I named it as **Person Count**. I also changed untagged color to display different button color when no tag is selected. Person Count is a numerical value so I selected Tagging Type as **Numeric**.

I’ll switch to Ticket Tags page and add tags.

 ![](https://forum.sambapos.com/uploads/default/original/3X/5/e/5e08f9fd5a278880fb4a9fdddd45ff7eb5af20ee.jpeg) 

You can add more tags if needed. Now I need to map it to a Ticket Type.

 ![](https://forum.sambapos.com/uploads/default/original/3X/2/6/262caf839a5bdc1c3e225a5eb7c2376f4d3b9547.jpeg) 

I’m mapping it to **Ticket** ticket type because I don’t want to use this feature for other ticket types such as delivery tickets.

Now I’ll create a new ticket to show you how it works.

 ![](https://forum.sambapos.com/uploads/default/original/3X/4/0/401e247687088f48e70c67132e7e7d7e995ac1b2.jpeg)

**Person Count** button added to left commands section. It displayed in dark red since no person count selected yet. Click it to display tag buttons.

 ![](https://forum.sambapos.com/uploads/default/original/3X/9/4/9486a5c137bb90718fb66de6aa039a7b13c2b823.jpeg) 

When we choose a tag we’ll see our selection under order list.

 ![](https://forum.sambapos.com/uploads/default/original/3X/b/8/b8da479c6f05ff1b3d7c1b315f8e8fe9c793f5e9.jpeg) 

Create few tickets to see how it displayed on reports.

 ![](https://forum.sambapos.com/uploads/default/original/3X/2/c/2c42e25afab8019a8b5d54c5b47b7de9b5e53237.jpeg) 

Report displays how many tickets we created with each ticket tag, their totals and other useful totals.

##Forcing user to choose Person Count

We have two options to force user to choose a ticket tag.

 ![](https://forum.sambapos.com/uploads/default/original/3X/9/f/9f5780b71a5046c866d689ff2f525e1f44cbde9d.jpeg) 

When **Selection Required** setting is enabled user can’t settle, print ticket without selecting Person Count.

**Ask before creating ticket** setting is useful ask person count on creating new tickets. In this case clicking an empty table will first display person count tags and after selection new ticket appears.

##Automating

We can use rules and actions to automate some actions. For example we can add a product to ticket automatically when Person count selected.

I can use it to add cover charge but I want to show something different. For example I want to serve tea (or some starters) to tables in advance.

I’ll start by creating required actions.

 ![](https://forum.sambapos.com/uploads/default/original/3X/b/6/b66a52068fd6ba6fb27777ff754ef88fe1e9bc18.jpeg) 

I’ll use this action to add free Tea into tickets. Quantity defined as a variable because I’ll pass person count from rule. Order state is Gift because I want gift that item. Gifts should decrease inventory but price should not calculate.

I’ll create a rule to execute that action when person count selected.

 ![](https://forum.sambapos.com/uploads/default/original/3X/0/b/0bfbc0e95fed0d2f5ad02c1a5e61444cc2d24ad2.jpeg) 

When we tag a ticket **Ticket Tag Selected** event runs. When that happens I’ll check if this tag is “Person Count” tag and if it is I’ll execute “Add free Tea to ticket” action. To configure this I’ve selected **Ticket Tag Selected** event from “Event Name” combo. I added a constraint to check Tag Name and finally I clicked “Select Action” link to select “Add free to Ticket” action.

If you remember we configured **Quantity** parameter as a variable on action. When you expand blue action box you’ll see a field that you can write values. You can type any value here but we need to pass selected tag value so quantity becomes person count.

 ![](https://forum.sambapos.com/uploads/default/original/3X/b/2/b28d074a13f2930aa8bebc51ad95d21c8f9bdaba.jpeg) 

Finally I’ve switched to Mappings page and added default mapping to map it to ticket types.

Let’s see how it works. Create a new ticket and choose person count.

 ![](https://forum.sambapos.com/uploads/default/original/3X/7/f/7f5df4af1c7cf4b438a7827ad1b475446166c324.jpeg) 

As we select person count as 3 it adds 3 free tea into the ticket.

---

<div class="post-metadata">

**Author:** ![joegwell](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/j/b5ac83/32.png) [@joegwell](https://forum.sambapos.com/u/joegwell)\
**Post date:** [July 16, 2014, 4:12pm UTC](https://forum.sambapos.com/t/tracking-number-of-persons/207/2 "2014-07-16T16:12:45Z")

</div>

How can I show the person count on the bill also?

Thx!

---

<div class="post-metadata">

**Author:** ![QMcKay](https://forum.sambapos.com/user_avatar/forum.sambapos.com/qmckay/32/27925_2.png) [@QMcKay](https://forum.sambapos.com/u/QMcKay)\
**Post date:** [July 16, 2014, 7:03pm UTC](https://forum.sambapos.com/t/tracking-number-of-persons/207/3 "2014-07-16T19:03:55Z")

</div>

Add `{TICKET TAG:X}` to your Template, and it will print the given Tag on the Bill. In this case, use:

```
{TICKET TAG:Person Count}
```

---

<div class="post-metadata">

**Author:** ![joegwell](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/j/b5ac83/32.png) [@joegwell](https://forum.sambapos.com/u/joegwell)\
**Post date:** [July 17, 2014, 3:55pm UTC](https://forum.sambapos.com/t/tracking-number-of-persons/207/4 "2014-07-17T15:55:08Z")

</div>

Thanks! Working great.

---

<div class="post-metadata">

**Author:** ![ginoli](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/g/90ced4/32.png) [@ginoli](https://forum.sambapos.com/u/ginoli)\
**Post date:** [August 20, 2014, 2:24am UTC](https://forum.sambapos.com/t/tracking-number-of-persons/207/5 "2014-08-20T02:24:23Z")

</div>

Hello. Everything works as you say on Samba 1.4.48.

**A serious question** : how do you enter a price per person in some nights and other nights not?

I’m using now the tracking of people like a product and then as modifier change price each, but this ticket tags system seems to me better.

What to do?

---

<div class="post-metadata">

**Author:** ![madiha](https://forum.sambapos.com/user_avatar/forum.sambapos.com/madiha/32/13950_2.png) [@madiha](https://forum.sambapos.com/u/madiha)\
**Post date:** [January 27, 2015, 7:14am UTC](https://forum.sambapos.com/t/tracking-number-of-persons/207/6 "2015-01-27T07:14:43Z")

</div>

Guest:|{REPORT TICKET TOTAL:(TT=Guest)} ----\> gives total amount from guest  
{REPORT TICKET COUNT:(TT=Guest) ------\> gives number of occurence of tag used

---

<div class="post-metadata">

**Author:** ![hadjieff](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/h/3be4f8/32.png) [@hadjieff](https://forum.sambapos.com/u/hadjieff)\
**Post date:** [March 30, 2015, 3:04pm UTC](https://forum.sambapos.com/t/tracking-number-of-persons/207/8 "2015-03-30T15:04:58Z")

</div>

[MÜŞTƏRİ SAYI:2, 2]

> [N]Müştəri sayı|[C]Tarix  
> {REPORT TICKET COUNT:(TT=MÜŞTƏRİ SAYI)}  
> How add Date/ Daily guest count

---

<div class="post-metadata">

**Author:** ![Marian](https://forum.sambapos.com/user_avatar/forum.sambapos.com/marian/32/11477_2.png) [@Marian](https://forum.sambapos.com/u/Marian)\
**Post date:** [June 2, 2015, 2:58pm UTC](https://forum.sambapos.com/t/tracking-number-of-persons/207/9 "2015-06-02T14:58:48Z")

</div>

> [@emre](#):
>
> When we choose a tag we’ll see our selection under order list.

Hello,

Can we make this thing to be shown near the Table Number ?  
Let’s say that a customer calls and I book a table for him, Table NR.10, and near the name of the table should be: NR.10 - (3), 3 for the nr. of clients.

Thanks

---

<div class="post-metadata">

**Author:** ![QMcKay](https://forum.sambapos.com/user_avatar/forum.sambapos.com/qmckay/32/27925_2.png) [@QMcKay](https://forum.sambapos.com/u/QMcKay)\
**Post date:** [June 3, 2015, 12:18pm UTC](https://forum.sambapos.com/t/tracking-number-of-persons/207/10 "2015-06-03T12:18:47Z")

</div>

Not with v4, but v5 has features that would support this. You can put nearly anything on the Table Entity screen in v5.

---

<div class="post-metadata">

**Author:** ![Marian](https://forum.sambapos.com/user_avatar/forum.sambapos.com/marian/32/11477_2.png) [@Marian](https://forum.sambapos.com/u/Marian)\
**Post date:** [June 4, 2015, 8:12am UTC](https://forum.sambapos.com/t/tracking-number-of-persons/207/11 "2015-06-04T08:12:21Z")

</div>

> [@QMcKay](#):
>
> Not with v4, but v5 has features that would support this. You can put nearly anything on the Table Entity screen in v5.

Ok, thanks. Any chance to be released this week ? 😃  
Cheer’s
