Jump to content

Deleting Transactions


Recommended Posts

Hi,

If a Transaction is deleted, is there anyway to have to include the Invoice # (and the amount?) that was associated for that Transaction in Activity Logs?

Right now, it only includes something like this:

Deleted Transaction - Transaction ID: 1558

This is not very helpful...

I know it's very bad practice to delete a Transaction but the reason I ask for this feature is because I can't control what our employees so sometimes mistakes are made.

Is there a hook for this?

Link to comment
Share on other sites

On 8/14/2020 at 11:18 AM, Kian said:

You can do it yourself.


<?php

add_hook('AddTransaction', 1, function($vars) {
   logActivity('This is my custom log');
});

 

Hi Kian,

Can you please let me know what this does?

I added this hook but I didn't notice any changes.

Link to comment
Share on other sites

It creates a log in Utilities > Logs > Activity Log every time a transaction is added. You just need to get transactions details (eg. ID, amount, payment method...) with a query and store them in log. This way you can retreive information about deleted transactions directly from Activity Log.

Link to comment
Share on other sites

On 8/12/2020 at 10:20 PM, baymax said:

Hi,

If a Transaction is deleted, is there anyway to have to include the Invoice # (and the amount?) that was associated for that Transaction in Activity Logs?

Right now, it only includes something like this:

Deleted Transaction - Transaction ID: 1558

This is not very helpful...

I know it's very bad practice to delete a Transaction but the reason I ask for this feature is because I can't control what our employees so sometimes mistakes are made.

Is there a hook for this?

Exactly, you should not delete transactions unless there is a good reason.

You can't control what employees do? Yes you can. Why are you giving them permission to delete transactions?

You can assign specific individual permissions per group and staff user. One of them is delete transactions. Just uncheck that for those users.

Edited by yggdrasil
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated