# Constraint For Merge TICKETS

**URL:** <https://forum.sambapos.com/t/constraint-for-merge-tickets/5891>\
**Category:** V4 Question\
**Created:** [June 20, 2015, 7:12am UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891 "2015-06-20T07:12:21Z")\
**Posts on this page:** 20\
**Page:** 1

<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:** [June 20, 2015, 7:12am UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891/1 "2015-06-20T07:12:21Z")

</div>

i recently discovered that if we merge two different tickets it manages to combine the amount but not the people. And it prompts for the number of person also. As i have set to prompt for number of people on ticket created rule.

So what constraint should i put when i merge table and how to combine the two tickets people also

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [June 20, 2015, 7:43am UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891/2 "2015-06-20T07:43:32Z")

</div>

When you merge tickets its really creating one new ticket with orders from the previous 2 tickets. So if you have yolur rule set with Ticket Created then that explains why its popping up. Instead find a different event to use and then pass the Ticket Tag into the new ticket after merge.

---

<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:** [June 20, 2015, 11:22pm UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891/3 "2015-06-20T23:22:17Z")

</div>

ok but how to combine the two tickets people tag

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [June 20, 2015, 11:23pm UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891/4 "2015-06-20T23:23:40Z")

</div>

Store the value as program setting and transfer that after Tickets Merged event.

---

<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:** [June 21, 2015, 12:04am UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891/5 "2015-06-21T00:04:21Z")

</div>

one more thing by default samba allow us to megr tickets from same table. what if we want to merge tables.

we should have a button merge table  
and include action: move and merge —\> correct

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [June 21, 2015, 12:09am UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891/6 "2015-06-21T00:09:11Z")

</div>

you just choose change table… and add it to table you want and then merge the tickets

---

<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:** [June 21, 2015, 12:09am UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891/7 "2015-06-21T00:09:48Z")

</div>

but this is in 2 steps if want to do in 1 step

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [June 21, 2015, 12:10am UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891/8 "2015-06-21T00:10:31Z")

</div>

So what if you wanted to add it to a table but not merge? If you combine it into 1 it would always merge…

---

<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:** [June 21, 2015, 12:11am UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891/9 "2015-06-21T00:11:33Z")

</div>

> [@Jesse](#):
>
> wanted to add it to a table but not merge

for this we have default move change table button

i was thinking to add one more button for merge tabe

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [June 21, 2015, 12:13am UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891/10 "2015-06-21T00:13:23Z")

</div>

Technically no such thing as merge table… your just changing a table and merging tickets.

---

<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:** [June 21, 2015, 12:16am UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891/11 "2015-06-21T00:16:29Z")

</div>

@madiha are you a restaurant owner or a technical guy?

---

<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:** [June 21, 2015, 12:17am UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891/12 "2015-06-21T00:17:43Z")

</div>

it makes sense to me that’s what i thought also but this is what i want to achieve merge tables send a notification in ktichen:  
for eg:  
**Void**  
-1 Veg Meal  
Merge to table 2

* * *

Table:1 People:2

then another print in kitchen:

1 Veg Meal  
Merge from Table

* * *

Table:2 [2]

---

<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:** [June 21, 2015, 12:18am UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891/13 "2015-06-21T00:18:48Z")

</div>

@emre i am not a restaurant owner but do help to setup POS for restaurant owners

---

<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:** [June 21, 2015, 12:24am UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891/14 "2015-06-21T00:24:08Z")

</div>

If you really want to automate this in that detail you should setup a kitchen screen and mark orders as `preparing` & `served`.

When you know which orders are still preparing in kitchen you can notify kitchen for table changes (not only for merge). You’ll only notify orders that has `preparing` state.

Ticket merging function is useful at payment stage. While customers sitting on table you shouldn’t merge tables as people may want to pay their own tickets. If all tickets gets paid at once you can merge tickets.

---

<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:** [June 21, 2015, 12:32am UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891/15 "2015-06-21T00:32:10Z")

</div>

hmm got your point

> [@emre](#):
>
> technical guy

by the away now that you have asked i am not a guy

---

<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:** [June 21, 2015, 2:29am UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891/16 "2015-06-21T02:29:19Z")

</div>

> [@Jesse](#):
>
> Store the value as program setting and transfer that after Tickets Merged event.

i have created a action to store people ticket tag

 ![](https://forum.sambapos.com/uploads/default/original/2X/b/b28e62650c62cd7e7db1ae988b542b1976169a55.png)

this action should be called when we press merge tickets,  
but there is no merge ticket automation command as it is built in  
so in which event should i call the action

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [June 21, 2015, 2:54am UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891/17 "2015-06-21T02:54:07Z")

</div>

It can be stored same time you enter it.

---

<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:** [June 21, 2015, 5:45am UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891/18 "2015-06-21T05:45:49Z")

</div>

> [@emre](#):
>
> Ticket merging function is useful at payment stage.

as @emre stated merging is useful for payment only so i was thinking that whats the point of adding two tickets people. This will in return effect the total number of people in reports.

so i thought of just adding another ticket tag similar to people. i approached this way but its not working.

 ![](https://forum.sambapos.com/uploads/default/original/2X/5/59c33fc438bbeae68776ddd26060c4db77b72b49.png) 

 ![](https://forum.sambapos.com/uploads/default/original/2X/7/757f9268f0f24e6fa9ecf4f4f59d54a1d4623230.png)  
 ![](https://forum.sambapos.com/uploads/default/original/2X/5/5cdea194c905b64676b5b151818d8cc25790f6c6.png)  
 ![](https://forum.sambapos.com/uploads/default/original/2X/a/a61e49715be4db448b4cb19dfdd421a70d8cf6ef.png) 

this is the result

 ![](https://forum.sambapos.com/uploads/default/original/2X/b/b37e1729b2dd981697be3b25256f869a1e79b21e.png)

---

<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:** [June 21, 2015, 11:34am UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891/19 "2015-06-21T11:34:41Z")

</div>

> [@madiha](#):
>
> by the away now that you have asked i am not a guy

Oh OK. I should have thought that.

For next version I’ve implemented a new feature to sum numeric ticket tags in merged ticket. I hope that will help.

---

<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:** [June 21, 2015, 10:01pm UTC](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891/20 "2015-06-21T22:01:19Z")

</div>

any idea y the ticket tag is not showing the stored value

[Next page](https://forum.sambapos.com/t/constraint-for-merge-tickets/5891.md?page=2)
