When deleting a payment, Total Revenue On Dashboard, doesn't reflect action

I noticed this evening when I delete a payment that was received, the Total Revenue on the Dashboard is still reflecting the amount as if the payment was not deleted. All other aspects, invoice, customer dashboard, etc, toggle the amount correctly. If you continue to add and delete a payment, your Total Revenue figure will just continue to increase, it will never decrease.

I am using the self-hosted, but haven’t made any changes to the payments or dashboard.

Curious if anyone else has noticed this.

I see the problem, we’ll include a fix in the next release.

You can patch it by adding ->where('payments.is_deleted', '=', false) in the paidToDate function in app/Ninja/Repositories/DashboardRepository.php