# \[Question\] Split ticket based on Positions

**URL:** <https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509>\
**Category:** V5 Question\
**Created:** [September 17, 2016, 8:46pm UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509 "2016-09-17T20:46:18Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![Hasa](https://forum.sambapos.com/user_avatar/forum.sambapos.com/hasa/32/50950_2.png) [@Hasa](https://forum.sambapos.com/u/Hasa)\
**Post date:** [March 5, 2017, 11:18pm UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509/41 "2017-03-05T23:18:28Z")

</div>

Thats what im trying to wrap my head around. Im getting a little overloaded with all the tutorials, I just need a little start then I think ill figure it out. Honestly if I can get this setup im sure alot of people will find it of use. It will automate splitting large people count tickets.

Im thinking I need to somehow read all the orders and get a list of all the positions?

Then select all orders with each position and split ticket, go back to original ticket, split all orders with other positions, then go back to ticket lister screen where user will have a button to print all bills.

---

<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:** [March 5, 2017, 11:19pm UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509/42 "2017-03-05T23:19:17Z")

</div>

No automation wont read postions and make a list to act on. You loop it and act on each one based on its position.

---

<div class="post-metadata">

**Author:** ![Hasa](https://forum.sambapos.com/user_avatar/forum.sambapos.com/hasa/32/50950_2.png) [@Hasa](https://forum.sambapos.com/u/Hasa)\
**Post date:** [March 5, 2017, 11:21pm UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509/43 "2017-03-05T23:21:16Z")

</div>

So when I loop orders how can I read a state value?

---

<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:** [March 5, 2017, 11:21pm UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509/44 "2017-03-05T23:21:40Z")

</div>

You can read it on Value Looped event.

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [March 5, 2017, 11:22pm UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509/45 "2017-03-05T23:22:41Z")

</div>

Would you not use report order details expression to list the position numbers from states and loop through those values?

---

<div class="post-metadata">

**Author:** ![sukasem](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@sukasem](https://forum.sambapos.com/u/sukasem)\
**Post date:** [March 5, 2017, 11:23pm UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509/46 "2017-03-05T23:23:46Z")

</div>

You just need to understand this 2 tutorials.

> [@Split bill, Take Order and Pay by Seat, All in one ticket](https://forum.sambapos.com/t/split-bill-take-order-and-pay-by-seat-all-in-one-ticket/13643?source_topic_id=12509):
>
> I’ve been using this method for a while and I just redesign it to reduce button. HOW IT WORKS: Release Notes: Jan 6, 2017 - V0 Initial release Need @emre help with TICKET ORDER EXACT TOTAL (version 5.1.61) to work with tax and calculation. I still can’t get tax to include in EXACT TOTAL.

> [@Advanced Split Payments - New Way to Split Payments for Customers at Ticket Screen instead of Settle Screen](https://forum.sambapos.com/t/advanced-split-payments-new-way-to-split-payments-for-customers-at-ticket-screen-instead-of-settle-screen/7133?source_topic_id=12509):
>
> exclamation Always remember to backup your database first before trying new tutorials This tutorial will show an alternative method for splitting payments. This method lets you select orders from ticket screen and press settle it will automatically move those orders to a new ticket allow you to settle them and then return to previous ticket. Optional Configuration Task https://gist.githubusercontent.com/kendash/ea4bae48924e4281066c/raw/arrow_right_hook Copy the URL and navigate to…

You just combine move order part from @Jesse tutorial. My tutorial has all thing setup ready to move. I just don’t like to move for a reason.

---

<div class="post-metadata">

**Author:** ![Hasa](https://forum.sambapos.com/user_avatar/forum.sambapos.com/hasa/32/50950_2.png) [@Hasa](https://forum.sambapos.com/u/Hasa)\
**Post date:** [March 5, 2017, 11:25pm UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509/47 "2017-03-05T23:25:36Z")

</div>

Are there disadvantages to moving orders that I need to be aware of?

---

<div class="post-metadata">

**Author:** ![sukasem](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@sukasem](https://forum.sambapos.com/u/sukasem)\
**Post date:** [March 5, 2017, 11:27pm UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509/48 "2017-03-05T23:27:22Z")

</div>

Imagine when you have wrong items on different seats. You have to merge it back and do it again. Mine just change the Seat number done. Tons of ticket number will disappear. If you tracking ticket number you will fine a lot of ticket missing.

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [March 5, 2017, 11:29pm UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509/49 "2017-03-05T23:29:15Z")

</div>

Depends on your automation elsewhere I guess, if you have ticket created automation that might be triggered maybe…

---

<div class="post-metadata">

**Author:** ![Hasa](https://forum.sambapos.com/user_avatar/forum.sambapos.com/hasa/32/50950_2.png) [@Hasa](https://forum.sambapos.com/u/Hasa)\
**Post date:** [March 5, 2017, 11:30pm UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509/50 "2017-03-05T23:30:59Z")

</div>

If they have the wrong items in a seat then they can just go to new ticket and move it back to correct ticket right?

The reason I can use yours is because I need a bill printed for each position to take to the table. Then the customer comes up to register and pays.

Also I think very rarely will there be issues with wrong items to seats. Still cant I just use your method to change to correct seat before they split the ticket. I dont see an issue with that at all to be honest.

---

<div class="post-metadata">

**Author:** ![sukasem](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@sukasem](https://forum.sambapos.com/u/sukasem)\
**Post date:** [March 5, 2017, 11:32pm UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509/51 "2017-03-05T23:32:33Z")

</div>

I actually have done move order as well but since already have tutorial how to automate move then go back so, I didn’t bother to do it again.

I think the issue is I have to have delay 1 sec on going back to main ticket before moving next seat again.

---

<div class="post-metadata">

**Author:** ![Hasa](https://forum.sambapos.com/user_avatar/forum.sambapos.com/hasa/32/50950_2.png) [@Hasa](https://forum.sambapos.com/u/Hasa)\
**Post date:** [March 5, 2017, 11:34pm UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509/52 "2017-03-05T23:34:17Z")

</div>

Im just looking for a way to move orders to new tickets based on their position. Everything else I think should be easy. Im trying to learn from those tutorials. Hopefully I can come up with something.

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [March 5, 2017, 11:34pm UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509/53 "2017-03-05T23:34:48Z")

</div>

@Hasa how about using print bill but with selected items only set?  
You could print seperate bills for each position without moving the orders ?  
Similar start but print rather than move without the close/open ticket actions…  
Then when they pay just select the items on payment screen?  
If they need final paid receipt maybe not suitable but would give printed bill for each position…

---

<div class="post-metadata">

**Author:** ![Hasa](https://forum.sambapos.com/user_avatar/forum.sambapos.com/hasa/32/50950_2.png) [@Hasa](https://forum.sambapos.com/u/Hasa)\
**Post date:** [March 5, 2017, 11:38pm UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509/54 "2017-03-05T23:38:43Z")

</div>

Thats a pretty good idea. I use barcodes to bring up tickets on screen at register and would like to make it as fast as possible. For cashier to have to look at each position at register with 5 people waiting to cash out is unfortunately going to be a little bit of a hassle.

I think splitting tickets is the best method. Hopefully it wont interfere with any other configurations I have going on. Although my setups are fairly simple.

---

<div class="post-metadata">

**Author:** ![Hasa](https://forum.sambapos.com/user_avatar/forum.sambapos.com/hasa/32/50950_2.png) [@Hasa](https://forum.sambapos.com/u/Hasa)\
**Post date:** [March 6, 2017, 12:42am UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509/55 "2017-03-06T00:42:38Z")

</div>

> [@Jesse](#):
>
> You can read it on Value Looped event.

So I think im making progress here.

Quick Question:  
On Value Looped event, I want to select all orders where the state SeatPosition=Value Looped

I am a little confused on how Select Orders action works, can you please clarify this for me? For the “Order State:” field in the action, can I do something like “SeatPosition={Value Looped}”

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [March 6, 2017, 12:47am UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509/56 "2017-03-06T00:47:34Z")

</div>

There will be a square brackets expression for it.  
check the dropdown for the rule specific expressions and use that I place of curly brackets.

---

<div class="post-metadata">

**Author:** ![Hasa](https://forum.sambapos.com/user_avatar/forum.sambapos.com/hasa/32/50950_2.png) [@Hasa](https://forum.sambapos.com/u/Hasa)\
**Post date:** [March 6, 2017, 12:48am UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509/57 "2017-03-06T00:48:41Z")

</div>

> [@JTRTech](#):
>
> There will be a square brackets expression for it.Make an extra temp rule constraint and check the dropdown values for the rule specific tag and use that.

Sorry im not familiar with constraints, can you please give me an example?

Thanks JTR 🙂

Can I do something like this? Is it even possible to define a state value for the select orders action?  
 ![](https://forum.sambapos.com/uploads/default/original/3X/4/6/461a28e2351a29a43c6d7ef392510c70d04a0d21.png)

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [March 6, 2017, 1:02am UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509/58 "2017-03-06T01:02:20Z")

</div>

No like you did but in place of curly brackets there will be a rule specific expression like there is for command value etc.  
Not at PC, what options do you get in drop down?

---

<div class="post-metadata">

**Author:** ![Hasa](https://forum.sambapos.com/user_avatar/forum.sambapos.com/hasa/32/50950_2.png) [@Hasa](https://forum.sambapos.com/u/Hasa)\
**Post date:** [March 6, 2017, 1:05am UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509/59 "2017-03-06T01:05:21Z")

</div>

Drop down for “Order State:” field? It just gives me all my state names as defined under states section in settings.

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [March 6, 2017, 1:11am UTC](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509/60 "2017-03-06T01:11:16Z")

</div>

Not in the action itself, within the loop value rule where the action is used.

[Previous page](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509.md?page=2)

[Next page](https://forum.sambapos.com/t/question-split-ticket-based-on-positions/12509.md?page=4)
