# Manually revert a transaction when ticket is been reopened

**URL:** <https://forum.sambapos.com/t/manually-revert-a-transaction-when-ticket-is-been-reopened/14870>\
**Category:** V5 Question\
**Created:** [May 19, 2017, 12:49am UTC](https://forum.sambapos.com/t/manually-revert-a-transaction-when-ticket-is-been-reopened/14870 "2017-05-19T00:49:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodrigorila](https://forum.sambapos.com/user_avatar/forum.sambapos.com/rodrigorila/32/24511_2.png) [@rodrigorila](https://forum.sambapos.com/u/rodrigorila)\
**Post date:** [May 19, 2017, 12:49am UTC](https://forum.sambapos.com/t/manually-revert-a-transaction-when-ticket-is-been-reopened/14870/1 "2017-05-19T00:49:34Z")

</div>

I have a special way of adding Tip to a Ticket. When the Tip has been added and the ticket is been closed a Tip Transaction must be added.

I have created a custom action that adds a new Tip Transaction for the Tip as described above. When the Ticket is closed 3 Transactions appear in the corresponding Transaction Document. When the ticket is reopened only one transaction is been removed, the Tip transaction remains. So, if I close the ticket now it will regenerate a Tip transaction and thus double the tip amount in the Tips Account.

Why is the Tip Transaction not been removed when the ticket is been reopened?  
Should I create another “inverted” tip transaction for when the ticket is reopened?

---

<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:** [May 23, 2017, 10:16pm UTC](https://forum.sambapos.com/t/manually-revert-a-transaction-when-ticket-is-been-reopened/14870/2 "2017-05-23T22:16:21Z")

</div>

It depends how you are adding the Tip Transaction.

If it is a Calculation, I think it will be removed properly, but not sure.

I came across this same issue when using Rounding Calculations applied via Processors IIRC, and I needed to set up an Action to toggle all Rounding Calculations using zero as the Amount after the Ticket was re-opened.

* * *

Action - named “Round Remove”, but since it has variable parameters for everything, it is really just a Generic Update Ticket Calculation Action:

![](https://forum.sambapos.com/uploads/default/original/3X/0/d/0da7af68267f05489f1981a3683abe6105db73b9.png)

* * *

The Rule fires that Action 4 times to hit all the Rounding Calculations that could be on the Ticket:

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