From: Moritz Bunkus Date: Tue, 23 Sep 2014 14:35:06 +0000 (+0200) Subject: Finanzübersicht: auch zukünftige Jahre auswählen können X-Git-Tag: release-3.2.0~26 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ab98131d8e9f5102ac0ea1c33fe122432407b49f;p=kivitendo-erp.git Finanzübersicht: auch zukünftige Jahre auswählen können --- diff --git a/SL/Controller/FinancialOverview.pm b/SL/Controller/FinancialOverview.pm index e8ed1401a..6d3fc10ab 100644 --- a/SL/Controller/FinancialOverview.pm +++ b/SL/Controller/FinancialOverview.pm @@ -61,7 +61,7 @@ sub prepare_report { std_column_visibility => 1, controller_class => 'FinancialOverview', output_format => 'HTML', - raw_top_info_text => $self->render('financial_overview/report_top', { output => 0 }, YEARS_TO_LIST => [ reverse(2000..$self->current_year) ]), + raw_top_info_text => $self->render('financial_overview/report_top', { output => 0 }, YEARS_TO_LIST => [ reverse(($self->current_year - 10)..($self->current_year + 5)) ]), title => t8('Financial overview for #1', $self->year), allow_pdf_export => 1, allow_csv_export => 1, diff --git a/templates/webpages/financial_overview/report_top.html b/templates/webpages/financial_overview/report_top.html index e128e8795..85a188107 100644 --- a/templates/webpages/financial_overview/report_top.html +++ b/templates/webpages/financial_overview/report_top.html @@ -7,7 +7,7 @@ [% LxERP.t8("Current year") %]: [% L.select_tag('year', YEARS_TO_LIST, default=SELF.year, onchange='$("#form").submit();') %] - [% IF SELF.year < SELF.current_year %] + [% IF SELF.year < (SELF.current_year + 5) %] | [%- LxERP.t8("Following year") %]: [% SELF.year + 1 %] » [% END %]