mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for dashboard date ranges when financial year isn't set
This commit is contained in:
parent
f1aa2a4e0c
commit
19167d07b6
@ -117,7 +117,7 @@ class AccountPresenter extends Presenter
|
|||||||
|
|
||||||
public function dateRangeOptions()
|
public function dateRangeOptions()
|
||||||
{
|
{
|
||||||
$yearStart = Carbon::parse($this->entity->financialYearStart() ?: '2000-01-01');
|
$yearStart = Carbon::parse($this->entity->financialYearStart() ?: date('Y') . '-01-01');
|
||||||
$month = $yearStart->month - 1;
|
$month = $yearStart->month - 1;
|
||||||
$year = $yearStart->year;
|
$year = $yearStart->year;
|
||||||
$lastYear = $year - 1;
|
$lastYear = $year - 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user