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,
[% 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 %] »</a>
[% END %]