mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-13 13:18:30 +00:00
First start of new report.
This commit is contained in:
@@ -96,6 +96,7 @@ class ReportController extends Controller
|
|||||||
|
|
||||||
switch ($reportType) {
|
switch ($reportType) {
|
||||||
default:
|
default:
|
||||||
|
throw new FireflyException('Unfortunately, reports of the type "' . e($reportType) . '" are not yet available. ');
|
||||||
case 'default':
|
case 'default':
|
||||||
|
|
||||||
View::share(
|
View::share(
|
||||||
@@ -119,6 +120,21 @@ class ReportController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $this->defaultMonth($reportType, $start, $end, $accounts);
|
return $this->defaultMonth($reportType, $start, $end, $accounts);
|
||||||
|
case 'audit':
|
||||||
|
|
||||||
|
View::share(
|
||||||
|
'subTitle', trans(
|
||||||
|
'firefly.report_audit',
|
||||||
|
[
|
||||||
|
'start' => $start->formatLocalized($this->monthFormat),
|
||||||
|
'end' => $end->formatLocalized($this->monthFormat),
|
||||||
|
]
|
||||||
|
)
|
||||||
|
);
|
||||||
|
View::share('subTitleIcon', 'fa-calendar');
|
||||||
|
|
||||||
|
throw new FireflyException('Unfortunately, reports of the type "' . e($reportType) . '" are not yet available. ');
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -543,6 +543,7 @@ return [
|
|||||||
|
|
||||||
// reports:
|
// reports:
|
||||||
'report_default' => 'Default financial report for :start until :end',
|
'report_default' => 'Default financial report for :start until :end',
|
||||||
|
'report_audit' => 'Transaction history overview for :start until :end',
|
||||||
'quick_link_reports' => 'Quick links',
|
'quick_link_reports' => 'Quick links',
|
||||||
'quick_link_default_report' => 'Default financial report',
|
'quick_link_default_report' => 'Default financial report',
|
||||||
'report_this_month_quick' => 'Current month, all accounts',
|
'report_this_month_quick' => 'Current month, all accounts',
|
||||||
@@ -585,6 +586,7 @@ return [
|
|||||||
'categories_spent_in_year' => 'Categories (by spendings)',
|
'categories_spent_in_year' => 'Categories (by spendings)',
|
||||||
'report_type' => 'Report type',
|
'report_type' => 'Report type',
|
||||||
'report_type_default' => 'Default financial report',
|
'report_type_default' => 'Default financial report',
|
||||||
|
'report_type_audit' => 'Transaction history overview (audit)',
|
||||||
'report_included_accounts' => 'Included accounts',
|
'report_included_accounts' => 'Included accounts',
|
||||||
'report_date_range' => 'Date range',
|
'report_date_range' => 'Date range',
|
||||||
'report_include_help' => 'In all cases, transfers to shared accounts count as expenses, and transfers from shared accounts count as income.',
|
'report_include_help' => 'In all cases, transfers to shared accounts count as expenses, and transfers from shared accounts count as income.',
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<select name="report_type" class="form-control" id="inputReportType">
|
<select name="report_type" class="form-control" id="inputReportType">
|
||||||
<option label="{{ 'report_type_default'|_ }}" value="default">{{ 'report_type_default'|_ }}</option>
|
<option label="{{ 'report_type_default'|_ }}" value="default">{{ 'report_type_default'|_ }}</option>
|
||||||
|
<option label="{{ 'report_type_audit'|_ }}" value="audit">{{ 'report_type_audit'|_ }}</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user