From ab98131d8e9f5102ac0ea1c33fe122432407b49f Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 23 Sep 2014 16:35:06 +0200 Subject: [PATCH] =?utf8?q?Finanz=C3=BCbersicht:=20auch=20zuk=C3=BCnftige?= =?utf8?q?=20Jahre=20ausw=C3=A4hlen=20k=C3=B6nnen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/FinancialOverview.pm | 2 +- templates/webpages/financial_overview/report_top.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 %] -- 2.20.1