# Reprint Ticket Order

**URL:** <https://forum.sambapos.com/t/reprint-ticket-order/7404>\
**Category:** V5 Question\
**Created:** [October 1, 2015, 4:12pm UTC](https://forum.sambapos.com/t/reprint-ticket-order/7404 "2015-10-01T16:12:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johan\_yo](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@Johan\_yo](https://forum.sambapos.com/u/Johan_yo)\
**Post date:** [October 1, 2015, 4:12pm UTC](https://forum.sambapos.com/t/reprint-ticket-order/7404/1 "2015-10-01T16:12:06Z")

</div>

Continuing the discussion from [[New 4.1.13] Reprinting Tickets](http://forum.sambapos.com/t/new-4-1-13-reprinting-tickets/479):

> [@\[New 4.1.13\] Reprinting Tickets](https://forum.sambapos.com/t/new-4-1-13-reprinting-tickets/479/1):
>
> ###When Reprinting needed?  
> There might be a lot of reasons. Waiter may drop ticket somewhere or printer may run out paper. For different reasons we might need reprinting orders to kitchen. On this tutorial I’ll show how to reprint for kitchen but same idea will also work for other print types such as bill printing.
> 
> ![](https://forum.sambapos.com/uploads/default/original/3X/3/4/3484f3730c5373720cc698cf1dd063625336720e.jpeg)

Can we add note counting reprint order to kitchen

if reprint 2nd  
\*Note Count Reprint to kitchen is 2nd

if reprint 3rd  
\*Note Count Reprint to kitchen is 3rd

---

<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:** [October 1, 2015, 4:18pm UTC](https://forum.sambapos.com/t/reprint-ticket-order/7404/2 "2015-10-01T16:18:09Z")

</div>

Yes you use a program setting to store #times pressed and print that in ticket. Use {TICKET NO} as setting name. We can delete the setting on ticket settle. I can show you in a few after I get home.

---

<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:** [October 1, 2015, 4:19pm UTC](https://forum.sambapos.com/t/reprint-ticket-order/7404/3 "2015-10-01T16:19:07Z")

</div>

Program setting would be the way I would go, logging the ticket number and the number of times print has been done.

Kendash beat me to it LOL

---

<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:** [October 1, 2015, 4:38pm UTC](https://forum.sambapos.com/t/reprint-ticket-order/7404/4 "2015-10-01T16:38:36Z")

</div>

Create an Update Program Setting action  
 ![](https://forum.sambapos.com/uploads/default/original/2X/d/d40792a46eca6db1a2347e703488cb9a67fa0136.png)  
**Setting Name:** [:SName]  
**Setting Value:** [:SValue]  
**Update Type:** Increase  
**Is Local:** False

Add the action to your Print Bill rule:

 ![](https://forum.sambapos.com/uploads/default/original/2X/7/73f8878bf2aec652318afb644129e4fc25dead62.png)

**SName:** {TICKET NO}  
**SValue:** 1

Add this line to your ticket template:

```
<J00>Ticket Copy# {SETTING:{TICKET NO}}

```

If you want it to show on the ticket for viewing from Ticket Viewer you can add an Update Ticket Tag action to the same rule and put `{SETTING:{TICKET NO}}` for the Tag value.

* * *

* * *

If you want it to be deleted after settle and do not care if you see it in reports we can Delete the setting on settle by modifying the Action as follows.

\<img src="/uploads/default/original/2X/9/994ce925053015ac77e711f8752569ee290c7bcd.png" width="417"height=“435”\>

Instead of using Increase for Update TYpe set it to `[:Update Type]` then type Increase for Update Type inside the rule for Print bill and create a Payment Processed rule with constraint remaining amount equals 0 put the action in there and for Update Type put Delete. Use same settings for SName and SValue as before.

---

<div class="post-metadata">

**Author:** ![Johan\_yo](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@Johan\_yo](https://forum.sambapos.com/u/Johan_yo)\
**Post date:** [October 1, 2015, 5:28pm UTC](https://forum.sambapos.com/t/reprint-ticket-order/7404/5 "2015-10-01T17:28:05Z")

</div>

can we hide  
Ticket Copy# {SETTING:{TICKET NO}}  
at first print order to kitchen.  
shown when we clik reprint kitchen

---

<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:** [October 1, 2015, 5:50pm UTC](https://forum.sambapos.com/t/reprint-ticket-order/7404/6 "2015-10-01T17:50:21Z")

</div>

@Johan_yo Yes use this:

```
<J00>[=TN('{SETTING:{TICKET NO}}') > 1 ? 'Ticket Copy# {SETTING:{TICKET NO}}' : ' ']

```

A lovely new feature available only in Version 5 is the ternary operator checking if the setting is greater than 1. If it is then it displays it. If its not then it shows nothing.
