Finanzübersicht: auch zukünftige Jahre auswählen können
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 23 Sep 2014 14:35:06 +0000 (16:35 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 19 Feb 2015 09:20:40 +0000 (10:20 +0100)
SL/Controller/FinancialOverview.pm
templates/webpages/financial_overview/report_top.html

index e8ed140..6d3fc10 100644 (file)
@@ -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,
index e128e87..85a1881 100644 (file)
@@ -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) %]
   |
   <a href="[% SELF.url_for(action='list', year=(SELF.year + 1), subtotals_per_quarter=SELF.subtotals_per_quarter, salesman_id=SELF.salesman_id) %]">[%- LxERP.t8("Following year") %]: [% SELF.year + 1 %] &raquo;</a>
  [% END %]