mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-20 11:33:59 +00:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
8a3b7d7c1a | ||
|
87f14617cc | ||
|
9f24f765ea | ||
|
48c802e5cc | ||
|
9c0893fa8c | ||
|
0dfb97c5f7 |
@@ -175,10 +175,13 @@ class ReportHelper implements ReportHelperInterface
|
|||||||
/** @var FiscalHelperInterface $fiscalHelper */
|
/** @var FiscalHelperInterface $fiscalHelper */
|
||||||
$fiscalHelper = app('FireflyIII\Helpers\FiscalHelperInterface');
|
$fiscalHelper = app('FireflyIII\Helpers\FiscalHelperInterface');
|
||||||
$start = clone $date;
|
$start = clone $date;
|
||||||
|
$start->startOfMonth();
|
||||||
$end = Carbon::now();
|
$end = Carbon::now();
|
||||||
|
$end->endOfMonth();
|
||||||
$months = [];
|
$months = [];
|
||||||
|
|
||||||
while ($start <= $end) {
|
while ($start <= $end) {
|
||||||
|
// current year:
|
||||||
$year = $fiscalHelper->endOfFiscalYear($start)->year;
|
$year = $fiscalHelper->endOfFiscalYear($start)->year;
|
||||||
|
|
||||||
if (!isset($months[$year])) {
|
if (!isset($months[$year])) {
|
||||||
@@ -193,6 +196,7 @@ class ReportHelper implements ReportHelperInterface
|
|||||||
|
|
||||||
$currentEnd = clone $start;
|
$currentEnd = clone $start;
|
||||||
$currentEnd->endOfMonth();
|
$currentEnd->endOfMonth();
|
||||||
|
|
||||||
$months[$year]['months'][] = [
|
$months[$year]['months'][] = [
|
||||||
'formatted' => $start->formatLocalized('%B %Y'),
|
'formatted' => $start->formatLocalized('%B %Y'),
|
||||||
'start' => $start->format('Y-m-d'),
|
'start' => $start->format('Y-m-d'),
|
||||||
@@ -200,7 +204,10 @@ class ReportHelper implements ReportHelperInterface
|
|||||||
'month' => $start->month,
|
'month' => $start->month,
|
||||||
'year' => $year,
|
'year' => $year,
|
||||||
];
|
];
|
||||||
$start->addMonth();
|
|
||||||
|
// to make the hop to the next month properly:
|
||||||
|
$start = clone $currentEnd;
|
||||||
|
$start->addDay();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $months;
|
return $months;
|
||||||
|
@@ -139,7 +139,7 @@ class RuleGroupController extends Controller
|
|||||||
$data = [
|
$data = [
|
||||||
'title' => $request->input('title'),
|
'title' => $request->input('title'),
|
||||||
'description' => $request->input('description'),
|
'description' => $request->input('description'),
|
||||||
'user' => Auth::user()->id,
|
'user_id' => Auth::user()->id,
|
||||||
];
|
];
|
||||||
|
|
||||||
$ruleGroup = $repository->store($data);
|
$ruleGroup = $repository->store($data);
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
'chart' => 'chartjs',
|
'chart' => 'chartjs',
|
||||||
'version' => '3.7.2',
|
'version' => '3.7.2.3',
|
||||||
'index_periods' => ['1D', '1W', '1M', '3M', '6M', '1Y', 'custom'],
|
'index_periods' => ['1D', '1W', '1M', '3M', '6M', '1Y', 'custom'],
|
||||||
'budget_periods' => ['daily', 'weekly', 'monthly', 'quarterly', 'half-year', 'yearly'],
|
'budget_periods' => ['daily', 'weekly', 'monthly', 'quarterly', 'half-year', 'yearly'],
|
||||||
'csv_import_enabled' => true,
|
'csv_import_enabled' => true,
|
||||||
|
@@ -15,5 +15,12 @@ return [
|
|||||||
'3.7.1' => 'Because of the upgrade to Laravel 5.2, several manual changes must be made to your Firefly III installation. ' .
|
'3.7.1' => 'Because of the upgrade to Laravel 5.2, several manual changes must be made to your Firefly III installation. ' .
|
||||||
'Please follow the instructions on the following page: https://github.com/JC5/firefly-iii/wiki/Upgrade-to-3.7.0',
|
'Please follow the instructions on the following page: https://github.com/JC5/firefly-iii/wiki/Upgrade-to-3.7.0',
|
||||||
'3.7.2' => 'Because of the upgrade to Laravel 5.2, several manual changes must be made to your Firefly III installation. ' .
|
'3.7.2' => 'Because of the upgrade to Laravel 5.2, several manual changes must be made to your Firefly III installation. ' .
|
||||||
'Please follow the instructions on the following page: https://github.com/JC5/firefly-iii/wiki/Upgrade-to-3.7.0'],
|
'Please follow the instructions on the following page: https://github.com/JC5/firefly-iii/wiki/Upgrade-to-3.7.0',
|
||||||
|
'3.7.2.1' => 'Because of the upgrade to Laravel 5.2, several manual changes must be made to your Firefly III installation. ' .
|
||||||
|
'Please follow the instructions on the following page: https://github.com/JC5/firefly-iii/wiki/Upgrade-to-3.7.0',
|
||||||
|
'3.7.2.2' => 'Because of the upgrade to Laravel 5.2, several manual changes must be made to your Firefly III installation. ' .
|
||||||
|
'Please follow the instructions on the following page: https://github.com/JC5/firefly-iii/wiki/Upgrade-to-3.7.0',
|
||||||
|
'3.7.2.3' => 'Because of the upgrade to Laravel 5.2, several manual changes must be made to your Firefly III installation. ' .
|
||||||
|
'Please follow the instructions on the following page: https://github.com/JC5/firefly-iii/wiki/Upgrade-to-3.7.0',
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
@@ -87,8 +87,8 @@ function preSelectDate(e) {
|
|||||||
"use strict";
|
"use strict";
|
||||||
var link = $(e.target);
|
var link = $(e.target);
|
||||||
var picker = $('#inputDateRange').data('daterangepicker');
|
var picker = $('#inputDateRange').data('daterangepicker');
|
||||||
picker.setStartDate(link.data('start'));
|
picker.setStartDate(moment(link.data('start'), "YYYY-MM-DD"));
|
||||||
picker.setEndDate(link.data('end'));
|
picker.setEndDate(moment(link.data('end'), "YYYY-MM-DD"));
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user