mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 22:54:25 +01:00
Exclude deleted payments from 12-month revenue
This commit is contained in:
parent
3d84e408bb
commit
c04a92b836
@ -225,6 +225,7 @@ class DashboardRepository
|
|||||||
->where('payments.account_id', '=', $accountId)
|
->where('payments.account_id', '=', $accountId)
|
||||||
->where('clients.is_deleted', '=', false)
|
->where('clients.is_deleted', '=', false)
|
||||||
->where('invoices.is_deleted', '=', false)
|
->where('invoices.is_deleted', '=', false)
|
||||||
|
->where('payments.is_deleted', '=', false)
|
||||||
->whereNotIn('payments.payment_status_id', [PAYMENT_STATUS_VOIDED, PAYMENT_STATUS_FAILED]);
|
->whereNotIn('payments.payment_status_id', [PAYMENT_STATUS_VOIDED, PAYMENT_STATUS_FAILED]);
|
||||||
|
|
||||||
if (!$viewAll){
|
if (!$viewAll){
|
||||||
|
Loading…
Reference in New Issue
Block a user