mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge dashboard fix
This commit is contained in:
parent
54a1594bb3
commit
682ce02995
@ -47,7 +47,7 @@ class DashboardRepository
|
|||||||
$count += $item->count;
|
$count += $item->count;
|
||||||
$balance += isset($item->balance) ? $item->balance : 0;
|
$balance += isset($item->balance) ? $item->balance : 0;
|
||||||
}, $records);
|
}, $records);
|
||||||
|
|
||||||
$padding = $groupBy == 'DAYOFYEAR' ? 'day' : ($groupBy == 'WEEK' ? 'week' : 'month');
|
$padding = $groupBy == 'DAYOFYEAR' ? 'day' : ($groupBy == 'WEEK' ? 'week' : 'month');
|
||||||
$endDate->modify('+1 '.$padding);
|
$endDate->modify('+1 '.$padding);
|
||||||
$interval = new DateInterval('P1'.substr($groupBy, 0, 1));
|
$interval = new DateInterval('P1'.substr($groupBy, 0, 1));
|
||||||
@ -195,6 +195,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…
x
Reference in New Issue
Block a user