# Cancel ticket and erase all sales

**URL:** <https://forum.sambapos.com/t/cancel-ticket-and-erase-all-sales/381>\
**Category:** V4 Question\
**Created:** [January 28, 2014, 12:56pm UTC](https://forum.sambapos.com/t/cancel-ticket-and-erase-all-sales/381 "2014-01-28T12:56:48Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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:** [September 18, 2014, 1:46pm UTC](https://forum.sambapos.com/t/cancel-ticket-and-erase-all-sales/381/10 "2014-09-18T13:46:38Z")

</div>

Yes there was an action created for this a few versions ago. It is called Cancel Orders action. You would need to make an automation command button and a rule for Automation Command Executed and then insert the Cancel Orders action. You could use specific State for Enabled so it can only be used BEFORE Submitted. Let me show you in some screenshots…

**Create Cancel Orders Action:**

 ![](https://forum.sambapos.com/uploads/default/original/3X/e/a/ea5009fef3d78939432528d89338fec859a65535.png) 

**Create Cancel Orders Automation Command Button:**

 ![](https://forum.sambapos.com/uploads/default/original/3X/a/c/ac6ee0865356979a4351a712d7d2ff1b2933ea15.png) 

**Mapping for Command Button:**

 ![](https://forum.sambapos.com/uploads/default/original/3X/1/a/1a3d2989b953fc37818fbb3280d448d3f321ca83.png) 

**Create an Automation Command Executed rule:** Set Default Mapping for Rule.

 ![](https://forum.sambapos.com/uploads/default/original/3X/3/c/3c560da4676c5009ba1def691c0a61444620503d.png)

**Here is what it looks like:**

 ![](https://forum.sambapos.com/uploads/default/original/3X/8/2/82d7d34f477924ab44bdec99b0c0e60e61f89db8.png)

---

_[View the full topic](https://forum.sambapos.com/t/cancel-ticket-and-erase-all-sales/381)._
