[%- USE L %][% USE LxERP %]
<form method="post" id="form" action="controller.pl">
[% L.hidden_tag('action', 'FinancialOverview/list') %]
- <a href="[% SELF.url_for(action='list', year=(SELF.year - 1), subtotals_per_quarter=SELF.subtotals_per_quarter) %]">« [%- LxERP.t8("Prior year") %]: [% SELF.year - 1 %]</a>
+ <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("Prior year") %]: [% SELF.year - 1 %]</a>
|
[% 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) %]">[%- LxERP.t8("Following year") %]: [% SELF.year + 1 %] »</a>
+ <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 %]
-
<br>
+
[% L.checkbox_tag('subtotals_per_quarter', checked=SELF.subtotals_per_quarter, label=LxERP.t8('Subtotals per quarter'), onchange='$("#form").submit();') %]
+ <br>
+
+ [% LxERP.t8("Salesperson") %]:
+ [% L.select_tag('salesman_id', SELF.employees, with_empty=1, title_key='name', onchange='$("#form").submit();', default=SELF.salesman_id) %]</p>
</form>
<hr>