mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 06:04:30 -04: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) {
|
if ($startDate) {
|
||||||
$paidToDate->where('payments.payment_date', '>=', $startDate);
|
$paidToDate->where('payments.payment_date', '>=', $startDate);
|
||||||
} elseif ($startDate = $account->financialYearStart()) {
|
} elseif ($startDate = $account->financialYearStart()) {
|
||||||
$paidToDate->where('payments.payment_date', '>=', $startDate);
|
//$paidToDate->where('payments.payment_date', '>=', $startDate);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $paidToDate->groupBy('payments.account_id')
|
return $paidToDate->groupBy('payments.account_id')
|
||||||
@ -250,7 +250,7 @@ class DashboardRepository
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($startDate = $account->financialYearStart()) {
|
if ($startDate = $account->financialYearStart()) {
|
||||||
$averageInvoice->where('invoices.invoice_date', '>=', $startDate);
|
//$averageInvoice->where('invoices.invoice_date', '>=', $startDate);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $averageInvoice->groupBy('accounts.id')
|
return $averageInvoice->groupBy('accounts.id')
|
||||||
@ -393,7 +393,7 @@ class DashboardRepository
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($startDate = $account->financialYearStart()) {
|
if ($startDate = $account->financialYearStart()) {
|
||||||
$expenses->where('expenses.expense_date', '>=', $startDate);
|
//$expenses->where('expenses.expense_date', '>=', $startDate);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $expenses->groupBy('accounts.id')
|
return $expenses->groupBy('accounts.id')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user