# Adding the number of orders on a ticket

**URL:** <https://forum.sambapos.com/t/adding-the-number-of-orders-on-a-ticket/18075>\
**Category:** V5 Question\
**Created:** [August 22, 2018, 12:32pm UTC](https://forum.sambapos.com/t/adding-the-number-of-orders-on-a-ticket/18075 "2018-08-22T12:32:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Easyfind](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/e/67e7ee/32.png) [@Easyfind](https://forum.sambapos.com/u/Easyfind)\
**Post date:** [August 22, 2018, 12:32pm UTC](https://forum.sambapos.com/t/adding-the-number-of-orders-on-a-ticket/18075/1 "2018-08-22T12:32:59Z")

</div>

hi I want to add a field on a ticket such that every ticket prints a new Order number that increases by 1 for every printout.  
For Example: When i open ticket number 46 the first printout to indicate:  
Ticket: 46 Round: 1  
the second addition to the same ticket to read:  
Ticket 46 Round: 2  
When i open a new ticket the Round Number to Reset to 1 that is:  
Ticket: 47 Round: 1

---

<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:** [August 22, 2018, 12:42pm UTC](https://forum.sambapos.com/t/adding-the-number-of-orders-on-a-ticket/18075/2 "2018-08-22T12:42:43Z")

</div>

I would think the best hook to use would be ticket state changed to new orders.  
Tickets change to unpaid on close/submit so this will change to new orders each time a ‘round’ is rung in.  
Doing it this way will prevent increases by just opening the ticket.  
Store it as a ticket tag and you wont need to reset, it will just be a per ticket value.

---

<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:** [August 22, 2018, 12:57pm UTC](https://forum.sambapos.com/t/adding-the-number-of-orders-on-a-ticket/18075/3 "2018-08-22T12:57:46Z")

</div>

I created a tutorial for this setup.

> [@Tracking Order Round Numbers by Ticket](https://forum.sambapos.com/t/tracking-order-round-numbers-by-ticket/18076):
>
> In this tutorial I’ll show you how to track round numbers on ticket. First of all create a new Action to increase round numbers and store round value in a Ticket State called Round. By setting QuantityExp value to +1 Quantity increases by 1 on each call. When we start adding a new round of orders to ticket, Ticket’s Status state becomes New Orders. We can handle that to increase round number. I’ll create a rule to handle that. Finally I’ll add Round Number in Kitchen Print…

---

<div class="post-metadata">

**Author:** ![Easyfind](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/e/67e7ee/32.png) [@Easyfind](https://forum.sambapos.com/u/Easyfind)\
**Post date:** [August 31, 2018, 1:55pm UTC](https://forum.sambapos.com/t/adding-the-number-of-orders-on-a-ticket/18075/4 "2018-08-31T13:55:24Z")

</div>

Hi this worked perfectly. Thanks for the assistance.  
I have a new challenge where i would like to have a custom report that i can view the purchases by Supplier. The report should categorize by item , cost and total value of the purchase. At default we have the total purchases and supplier should be a filter. Thanks
