date filter on dashboard will work fiscal year based akaunting/software#78

This commit is contained in:
Sevan Nerse
2021-03-23 17:32:39 +03:00
parent 468b84354c
commit 6c44c53a60
2 changed files with 11 additions and 7 deletions

View File

@@ -150,6 +150,10 @@ trait DateTime
$this_quarter = $quarter;
}
if (!isset($this_quarter)) {
$this_quarter = $financial_quarters[0];
}
$date_picker_shortcuts = [
trans('reports.this_year') => [
'start' => $financial_year->getStartDate()->format('Y-m-d'),