mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-28 09:51:21 -06:00
First start of new report.
This commit is contained in:
parent
8200c7248a
commit
07f4995c8f
@ -96,6 +96,7 @@ class ReportController extends Controller
|
||||
|
||||
switch ($reportType) {
|
||||
default:
|
||||
throw new FireflyException('Unfortunately, reports of the type "' . e($reportType) . '" are not yet available. ');
|
||||
case 'default':
|
||||
|
||||
View::share(
|
||||
@ -119,6 +120,21 @@ class ReportController extends Controller
|
||||
}
|
||||
|
||||
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:
|
||||
'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_default_report' => 'Default financial report',
|
||||
'report_this_month_quick' => 'Current month, all accounts',
|
||||
@ -585,6 +586,7 @@ return [
|
||||
'categories_spent_in_year' => 'Categories (by spendings)',
|
||||
'report_type' => 'Report type',
|
||||
'report_type_default' => 'Default financial report',
|
||||
'report_type_audit' => 'Transaction history overview (audit)',
|
||||
'report_included_accounts' => 'Included accounts',
|
||||
'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.',
|
||||
|
@ -21,6 +21,7 @@
|
||||
<div class="col-sm-9">
|
||||
<select name="report_type" class="form-control" id="inputReportType">
|
||||
<option label="{{ 'report_type_default'|_ }}" value="default">{{ 'report_type_default'|_ }}</option>
|
||||
<option label="{{ 'report_type_audit'|_ }}" value="audit">{{ 'report_type_audit'|_ }}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user