# Before close ticket event canel close

**URL:** <https://forum.sambapos.com/t/before-close-ticket-event-canel-close/5716>\
**Category:** V4 Question\
**Created:** [June 7, 2015, 10:02pm UTC](https://forum.sambapos.com/t/before-close-ticket-event-canel-close/5716 "2015-06-07T22:02:46Z")\
**Posts on this page:** 7\
**Page:** 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:** [June 7, 2015, 10:02pm UTC](https://forum.sambapos.com/t/before-close-ticket-event-canel-close/5716/1 "2015-06-07T22:02:46Z")

</div>

Haven’t tried but specifically but on the Thai restaurant setup I posted the other day I have setup an ask question action on the close ticket button to a question ‘closing ticket will send all food orders to the kitchen, do you want to continue?’ so that is staff appreciate that closing at that moment will send new orders to kitchen and give them a chance to make any changes they might have missed.  
This is constrained to a ticket state for KOrder = New Orders so only asks if there are new food items on the ticket that would be printed to kitchen.  
As you can end up with several ways for a ticket to be closed/orders printed to kitchen I wondered if there might be a way to set a more general rule that say on ticket closing a confirmation as described could be added.  
In short a way to stop an event.  
Any opinions/ideas?

---

<div class="post-metadata">

**Author:** ![QMcKay](https://forum.sambapos.com/user_avatar/forum.sambapos.com/qmckay/32/27925_2.png) [@QMcKay](https://forum.sambapos.com/u/QMcKay)\
**Post date:** [June 8, 2015, 5:28pm UTC](https://forum.sambapos.com/t/before-close-ticket-event-canel-close/5716/2 "2015-06-08T17:28:30Z")

</div>

You just need to change the Rule that handles the Close button.

Take out the Close Ticket Action.  
Insert an Ask Question Action that fires an Automation Command called (for example) “Close Confirm”.  
In the “Close Confirm” Rule, place the Close Ticket Action.  
Constrain the Rule to only fire if the Command Value is Yes.

---

<div class="post-metadata">

**Author:** ![Marian](https://forum.sambapos.com/user_avatar/forum.sambapos.com/marian/32/11477_2.png) [@Marian](https://forum.sambapos.com/u/Marian)\
**Post date:** [August 3, 2015, 11:35pm UTC](https://forum.sambapos.com/t/before-close-ticket-event-canel-close/5716/3 "2015-08-03T23:35:51Z")

</div>

hey,

Can I do the same thing for the Settle rule ? I need a question to to ask if I want to Print Bill or not, after I pay. (I need this in case that I already have a bill printed).

Thanks

---

<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:** [August 4, 2015, 2:21am UTC](https://forum.sambapos.com/t/before-close-ticket-event-canel-close/5716/4 "2015-08-04T02:21:12Z")

</div>

Yes put your ask question action inside Payment Processed Rule.

I am not quite sure I understand this part tho…

> [@Marian](#):
>
> (I need this in case that I already have a bill printed).

You want it to check if a bill has been printed already? What questions will be asked?

---

<div class="post-metadata">

**Author:** ![RickH](https://forum.sambapos.com/user_avatar/forum.sambapos.com/rickh/32/51960_2.png) [@RickH](https://forum.sambapos.com/u/RickH)\
**Post date:** [August 4, 2015, 2:22am UTC](https://forum.sambapos.com/t/before-close-ticket-event-canel-close/5716/5 "2015-08-04T02:22:45Z")

</div>

Try and search the forum this question has been asked a few times, most recently 3 days ago when i answered another post

See the post below containing a link to emres post of a tutorial that does exactly what you want, just amend for it to work on your settle button or wherever it is you want it to happen 🙂

> [@Option to print receipt or not](http://forum.sambapos.com/t/option-to-print-receipt-or-not/6424):
>
> how do go about creating a option box where as when a customer is cashed out. A message will pop up asking whether you want to print the receipt or not ?

Surely you want to print a receipt after bill is paid everytime unless the customer doesnt want a copy? Not because youve already printed a bill

A bill and receipt and two different things, the bill informs the customer what they owe, a receipt shows the customer they have paid for their order with details if payment type and change etc

---

<div class="post-metadata">

**Author:** ![Marian](https://forum.sambapos.com/user_avatar/forum.sambapos.com/marian/32/11477_2.png) [@Marian](https://forum.sambapos.com/u/Marian)\
**Post date:** [August 4, 2015, 8:57am UTC](https://forum.sambapos.com/t/before-close-ticket-event-canel-close/5716/6 "2015-08-04T08:57:48Z")

</div>

> [@RickH](#):
>
> to work on your settle button

Yes, for that I need it :), thank you 🙂

---

<div class="post-metadata">

**Author:** ![Marian](https://forum.sambapos.com/user_avatar/forum.sambapos.com/marian/32/11477_2.png) [@Marian](https://forum.sambapos.com/u/Marian)\
**Post date:** [August 4, 2015, 9:52am UTC](https://forum.sambapos.com/t/before-close-ticket-event-canel-close/5716/7 "2015-08-04T09:52:49Z")

</div>

hello,

I found it here, thank you for your time.

> [@\[New 4.1.37\] Ask Question Action](http://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/32):
>
> You would want to change buttons to Yes=Print Bill,No and remove print bill automation command name. Then make new rule with event automation command executed, set the constraint to command value equals print bill. The buttons bit where Yes=Print Bill makes it so pressing yes sends automation command value of Print Bill which is what makes that new rule fire. No button has no value so nothing happens. You would also obviously need to put the ask question in to a rule. Simplest exa…
