Kundenstatistik: Templates
[kivitendo-erp.git] / templates / webpages / financial_overview / report_top.html
index ae362ab..85a1881 100644 (file)
@@ -1,18 +1,22 @@
 [%- 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) %]">&laquo; [%- 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) %]">&laquo; [%- 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 %] &raquo;</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 %] &raquo;</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>