Exclude deleted payments from 12-month revenue
This commit is contained in:
parent
3d84e408bb
commit
c04a92b836
1 changed files with 1 additions and 0 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue