First start of new report.

This commit is contained in:
James Cole 2016-02-23 20:23:10 +01:00
parent 8200c7248a
commit 07f4995c8f
3 changed files with 19 additions and 0 deletions

View File

@ -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;
}

View File

@ -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.',

View File

@ -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>