# Show REPRINTED note for kitchen ticket

**URL:** <https://forum.sambapos.com/t/show-reprinted-note-for-kitchen-ticket/24249>\
**Category:** V5 Question\
**Created:** [May 19, 2021, 8:57am UTC](https://forum.sambapos.com/t/show-reprinted-note-for-kitchen-ticket/24249 "2021-05-19T08:57:36Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![punzzzter](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/p/90ced4/32.png) [@punzzzter](https://forum.sambapos.com/u/punzzzter)\
**Post date:** [May 19, 2021, 8:57am UTC](https://forum.sambapos.com/t/show-reprinted-note-for-kitchen-ticket/24249/1 "2021-05-19T08:57:37Z")

</div>

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

I was implementing the reprint button, it works great  
But I want to add note to the kitchen that this is reprint order so they will not get confused

Example

First normal order  
1xCorn Soup

when I choose to reprint  
1xCorn Soup \* Reprinted

I have read this topic and done exactly like Jesse recommendation  
Continuing the discussion from [Reprint Ticket Order](https://forum.sambapos.com/t/reprint-ticket-order/7404):

But it seems not showing as expected  
so I would like any advise please

---

<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:** [May 19, 2021, 12:39pm UTC](https://forum.sambapos.com/t/show-reprinted-note-for-kitchen-ticket/24249/2 "2021-05-19T12:39:05Z")

</div>

How is it showing? Show your working in order for anyone to comment else will just get vague feedback/sugestions.

---

<div class="post-metadata">

**Author:** ![punzzzter](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/p/90ced4/32.png) [@punzzzter](https://forum.sambapos.com/u/punzzzter)\
**Post date:** [May 20, 2021, 8:11am UTC](https://forum.sambapos.com/t/show-reprinted-note-for-kitchen-ticket/24249/3 "2021-05-20T08:11:27Z")

</div>

> [@JTRTech](#):
>
> How is it showing? Show your working in order for anyone to comment else will just get vague feedback/sugestions.

First sent 11.00 am  
Ticket shows: 1xCorn Soup 11.00 am

Reprint send 11.15 am  
Ticket shows: 1xCorn Soup 11.15 am (with no word says this is a reprint version)

---

<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:** [May 20, 2021, 9:07am UTC](https://forum.sambapos.com/t/show-reprinted-note-for-kitchen-ticket/24249/4 "2021-05-20T09:07:01Z")

</div>

Yer, get that bit, I mean how you implemented, generally tutorials on forum are accurate and work so if not working most likely a mistake has been made so show what you did to impliment.  
It’s not as simple as saying did you do this, as there are many ways to achive this and 2 systems could do this is very different ways.

---

<div class="post-metadata">

**Author:** ![punzzzter](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/p/90ced4/32.png) [@punzzzter](https://forum.sambapos.com/u/punzzzter)\
**Post date:** [May 20, 2021, 9:34am UTC](https://forum.sambapos.com/t/show-reprinted-note-for-kitchen-ticket/24249/5 "2021-05-20T09:34:55Z")

</div>

I just did something like  
 ![image](https://forum.sambapos.com/uploads/default/original/3X/c/b/cb60279582b2e60ff95d3e4ccd6e6b0bb2cc4cd2.png)

 ![image](https://forum.sambapos.com/uploads/default/original/3X/c/1/c148bf423c24e1c6f95b8c0196aca39930cb4be0.png)  
 ![image](https://forum.sambapos.com/uploads/default/original/3X/2/1/216ecb29d338231ea37d79de6e6dd92115c2d99a.png)  
 ![image](https://forum.sambapos.com/uploads/default/original/3X/e/f/ef11e0ac96c309b84323369144c94128917fbd07.png)  
 ![image](https://forum.sambapos.com/uploads/default/original/3X/7/1/71944b073b4e121aa22fa08dc674aea1692d3c37.png)

It works fine, but with no ticket noted REPRINT  
so I do this

![image](https://forum.sambapos.com/uploads/default/original/3X/d/3/d3797e2f074a2d3c33a40299c8055e9d966581dd.png)  
 ![image](https://forum.sambapos.com/uploads/default/original/3X/2/9/294d40c00744c3773a9a894542c4d49c9229a32e.png)  
 ![image](https://forum.sambapos.com/uploads/default/original/3X/2/b/2b88337845bd425d3119189f94e16e329720c4fa.png)

I add in Kitchen Orders Template

```
[LAYOUT]
<div style="font-size:15px;text-align:left;font-family:'Tahoma'"><L00>โต๊ะ: {ENTITY NAME:Table}
<div style="font-size:10px;text-align:left;font-family:'Tahoma'"><L00>Date:{TICKET DATE} | Time:{TIME} | Ticket No:{TICKET NO}
</div>
<F>-
{ORDERS}
<J00>Ticket Copy# {SETTING:{TICKET NO}}
</div>
[ORDERS]
<L00>{QUANTITY} x {NAME} {ORDER TAGS}
[ORDERS:Void]
<L00>{QUANTITY} x {NAME} {ORDER TAGS}
<L00>ยกเลิก !!! (X) (X) (X)
[ORDER TAGS]
-- Format for order tags
 *({ORDER TAG NAME})

```

Print first time at 16.33 pm  
 ![image](https://forum.sambapos.com/uploads/default/original/3X/7/8/78de98606581719c10a82b3f717de611ccf91cf4.png)

Print second time (reprint) at 16.34 pm  
 ![image](https://forum.sambapos.com/uploads/default/original/3X/b/e/bee949c6a40dca9ce06bfcfc849b1273e2a8e9cd.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:** [May 20, 2021, 4:33pm UTC](https://forum.sambapos.com/t/show-reprinted-note-for-kitchen-ticket/24249/6 "2021-05-20T16:33:25Z")

</div>

You increasing count on print bill button, isn’t this for customer copy not kitchen print?  
Sure your not just getting null since havnt printed receipt yet…  
Think your getting duplicate receipt flow mixed up with kitchen print…  
Personally I’d use a ticket tag or state rather than program setting but same end result.

---

<div class="post-metadata">

**Author:** ![punzzzter](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/p/90ced4/32.png) [@punzzzter](https://forum.sambapos.com/u/punzzzter)\
**Post date:** [May 20, 2021, 6:14pm UTC](https://forum.sambapos.com/t/show-reprinted-note-for-kitchen-ticket/24249/7 "2021-05-20T18:14:24Z")

</div>

I see now why it doesn’t work, actually I want to increase count on kitchen print.  
Could you recommend way to do please

---

<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:** [May 20, 2021, 7:15pm UTC](https://forum.sambapos.com/t/show-reprinted-note-for-kitchen-ticket/24249/8 "2021-05-20T19:15:39Z")

</div>

Ad your increase action just before the print action in the reprint rule.  
The issue is that adding more ordered will print new orders to kitchen, that wouldn’t be a copy but may show as copy if already been reprinted…

---

<div class="post-metadata">

**Author:** ![punzzzter](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/p/90ced4/32.png) [@punzzzter](https://forum.sambapos.com/u/punzzzter)\
**Post date:** [May 21, 2021, 7:27am UTC](https://forum.sambapos.com/t/show-reprinted-note-for-kitchen-ticket/24249/9 "2021-05-21T07:27:09Z")

</div>

I added the increase action before the print action in the reprint rule.  
but due to I used Update program settings, it count every time i click reprint in that table  
could you demonstrate how to depend on ticket tag, or state as you recommend please  
(I’m not kind of expert for the program, thinking I will messed it up by myself and this may helps other people also)  
Thank you in advance

---

<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:** [May 21, 2021, 8:41am UTC](https://forum.sambapos.com/t/show-reprinted-note-for-kitchen-ticket/24249/10 "2021-05-21T08:41:58Z")

</div>

> [@punzzzter](#):
>
> due to I used Update program settings, it count every time i click reprint in that table

That’d what you want no? To count the number of copies?

---

<div class="post-metadata">

**Author:** ![punzzzter](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/p/90ced4/32.png) [@punzzzter](https://forum.sambapos.com/u/punzzzter)\
**Post date:** [May 21, 2021, 9:09am UTC](https://forum.sambapos.com/t/show-reprinted-note-for-kitchen-ticket/24249/11 "2021-05-21T09:09:30Z")

</div>

JTRTech I just want to click reprint order to kitchen and shows this order is reprinting

I have now I used States, which works fine  
every time I clicked reprint the Rstate that I created will update to “Reprint”  
 ![image](https://forum.sambapos.com/uploads/default/original/3X/e/2/e25417807e49a4365a902ffd069267de45685584.png)

then I’m stucked with how to show in kitchen printer template  
if State=Reprint, Show the word “This order is Reprinted”

This is my kitchen template

```
[LAYOUT]
<div style="font-size:15px;text-align:left;font-family:'Tahoma'"><L00>โต๊ะ: {ENTITY NAME:Table}
<div style="font-size:10px;text-align:left;font-family:'Tahoma'"><L00>Date:{TICKET DATE} | Time:{TIME} | Ticket No:{TICKET NO}
</div>
<F>-
{ORDERS}
<J00>[=TN('{ORDER STATE:{Reprint}}') ? 'This order is Reprinted!' ']
</div>
[ORDERS]
<L00>{QUANTITY} x {NAME} {ORDER TAGS}
[ORDERS:Void]
<L00>{QUANTITY} x {NAME} {ORDER TAGS}
<L00>ยกเลิก !!! (X) (X) (X)
[ORDER TAGS]
-- Format for order tags
*({ORDER TAG NAME})

```

Should be something like  
[=TN(’{ORDER STATE:{Reprint}}’) ? ‘This order is Reprinted!’ ']  
but I’m not sure how to write it correctly  
can you help me with the code please

---

<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:** [May 21, 2021, 10:21am UTC](https://forum.sambapos.com/t/show-reprinted-note-for-kitchen-ticket/24249/12 "2021-05-21T10:21:57Z")

</div>

That makes more sence but no, that expression is wrong.

> [@punzzzter](#):
>
> [=TN(’{ORDER STATE:{Reprint}}’) ? ‘This order is Reprinted!’ ']

Should be something like:  
[='{ORDER STATE:Reprint’ == ‘Reprint’ ? ‘This order is Reprinted!’ : ‘’]

TN is turn to number, which you now using string not number.

---

<div class="post-metadata">

**Author:** ![punzzzter](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/p/90ced4/32.png) [@punzzzter](https://forum.sambapos.com/u/punzzzter)\
**Post date:** [May 21, 2021, 12:45pm UTC](https://forum.sambapos.com/t/show-reprinted-note-for-kitchen-ticket/24249/13 "2021-05-21T12:45:16Z")

</div>

![image](https://forum.sambapos.com/uploads/default/original/3X/8/e/8ecbf77ee32899c2e50469070fac5e86a4e38fbc.png)  
 ![image](https://forum.sambapos.com/uploads/default/original/3X/f/c/fc5ba42b4006e40380adfe50f26115496925e241.png)  
 ![image](https://forum.sambapos.com/uploads/default/original/3X/3/5/35f16af6736b26b482bc5c6554eda7eb92520482.png)

I tried adding kitchen template  
[=(’{ORDER STATE:RStatus}==Reprint’) ? ‘This order is Reprinted!’]  
[=’{ORDER STATE:RStatus}’ == ‘{Reprint}’ ? ‘This order is Reprinted!’’]  
[=’{ORDER STATE:RStatus}’ == ‘Reprint’ ? ‘This order is Reprinted!’ : ‘’]  
[=’ORDER STATE:RStatus’ == ‘Reprint’ ? ‘This order is Reprinted!’ : ‘’]  
[={ORDER STATE:RStatus} == ‘Reprint’ ? ‘This order is Reprinted!’ : ‘’]

With no luck. Am I missing something?

---

<div class="post-metadata">

**Author:** ![KryptonFactor](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/k/ac91a4/32.png) [@KryptonFactor](https://forum.sambapos.com/u/KryptonFactor)\
**Post date:** [May 21, 2021, 1:16pm UTC](https://forum.sambapos.com/t/show-reprinted-note-for-kitchen-ticket/24249/14 "2021-05-21T13:16:11Z")

</div>

Make sure you are using the correct `'` character. The forum tends to alter it when posting.  
If unsure use the samba pop-up keyboard to type it.

 ![16216029252596282488109432977802](https://forum.sambapos.com/uploads/default/original/3X/9/7/9740e8e0025637a826726844bd3c00cd75f11d62.jpeg)

---

<div class="post-metadata">

**Author:** ![punzzzter](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/p/90ced4/32.png) [@punzzzter](https://forum.sambapos.com/u/punzzzter)\
**Post date:** [May 21, 2021, 1:58pm UTC](https://forum.sambapos.com/t/show-reprinted-note-for-kitchen-ticket/24249/15 "2021-05-21T13:58:52Z")

</div>

I have tried changing the ’  
but still not working  
may be the coding is wrong

---

<div class="post-metadata">

**Author:** ![KryptonFactor](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/k/ac91a4/32.png) [@KryptonFactor](https://forum.sambapos.com/u/KryptonFactor)\
**Post date:** [May 21, 2021, 2:49pm UTC](https://forum.sambapos.com/t/show-reprinted-note-for-kitchen-ticket/24249/16 "2021-05-21T14:49:37Z")

</div>

Try a format like this  
`[='{TICKET STATE:Order Type}' == 'pickup' ? 'I print if ticket state order type equals pickup':'where as i print if it does not equal pickup']`

In your case it would look something like this…  
`[='{ORDER STATE:RStatus}' == 'Reprint' ? 'This order is Reprinted!':' ']`

This should work and is what JTR wrote

---

<div class="post-metadata">

**Author:** ![punzzzter](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/p/90ced4/32.png) [@punzzzter](https://forum.sambapos.com/u/punzzzter)\
**Post date:** [May 21, 2021, 3:22pm UTC](https://forum.sambapos.com/t/show-reprinted-note-for-kitchen-ticket/24249/17 "2021-05-21T15:22:08Z")

</div>

> [@KryptonFactor](#):
>
> [=‘{ORDER STATE:RStatus}’ == ‘Reprint’ ? ‘This order is Reprinted!’:’ ']

Finally I got it  
This is my successful template

```
[LAYOUT]
<div style="font-size:15px;text-align:left;font-family:'Tahoma'"><L00>โต๊ะ: {ENTITY NAME:Table}
<div style="font-size:10px;text-align:left;font-family:'Tahoma'"><L00>Date:{TICKET DATE} | Time:{TIME} | Ticket No:{TICKET NO}
</div>
<F>-
{ORDERS}
</div>
[ORDERS]
<L00>{QUANTITY} x {NAME} {ORDER TAGS}
<L00>[='{ORDER STATE:RStatus}' == 'Reprint' ? 'This order is Reprinted!':' ']
[ORDERS:Void]
<L00>{QUANTITY} x {NAME} {ORDER TAGS}
<L00>ยกเลิก !!! (X) (X) (X)
[ORDER TAGS]
-- Format for order tags
*({ORDER TAG NAME})
<BEEP>

```

Many thanks to JTRTech and KryptonFactor !!

---

<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:** [May 21, 2021, 4:07pm UTC](https://forum.sambapos.com/t/show-reprinted-note-for-kitchen-ticket/24249/18 "2021-05-21T16:07:49Z")

</div>

Was just about to say you calling order state outside the orders section which will be why.  
But you realised yourself.
