mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Don’t filter dashboard totals by fiscal year start
This commit is contained in:
parent
0a2f2593f8
commit
00ae600d1c
@ -219,7 +219,7 @@ class DashboardRepository
|
||||
if ($startDate) {
|
||||
$paidToDate->where('payments.payment_date', '>=', $startDate);
|
||||
} elseif ($startDate = $account->financialYearStart()) {
|
||||
$paidToDate->where('payments.payment_date', '>=', $startDate);
|
||||
//$paidToDate->where('payments.payment_date', '>=', $startDate);
|
||||
}
|
||||
|
||||
return $paidToDate->groupBy('payments.account_id')
|
||||
@ -250,7 +250,7 @@ class DashboardRepository
|
||||
}
|
||||
|
||||
if ($startDate = $account->financialYearStart()) {
|
||||
$averageInvoice->where('invoices.invoice_date', '>=', $startDate);
|
||||
//$averageInvoice->where('invoices.invoice_date', '>=', $startDate);
|
||||
}
|
||||
|
||||
return $averageInvoice->groupBy('accounts.id')
|
||||
@ -393,7 +393,7 @@ class DashboardRepository
|
||||
}
|
||||
|
||||
if ($startDate = $account->financialYearStart()) {
|
||||
$expenses->where('expenses.expense_date', '>=', $startDate);
|
||||
//$expenses->where('expenses.expense_date', '>=', $startDate);
|
||||
}
|
||||
|
||||
return $expenses->groupBy('accounts.id')
|
||||
|
Loading…
Reference in New Issue
Block a user