1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Exclude deleted payments from 12-month revenue

This commit is contained in:
Joshua Dwire 2016-11-14 13:42:27 -05:00
parent 3d84e408bb
commit c04a92b836

View File

@ -225,6 +225,7 @@ class DashboardRepository
->where('payments.account_id', '=', $accountId)
->where('clients.is_deleted', '=', false)
->where('invoices.is_deleted', '=', false)
->where('payments.is_deleted', '=', false)
->whereNotIn('payments.payment_status_id', [PAYMENT_STATUS_VOIDED, PAYMENT_STATUS_FAILED]);
if (!$viewAll){