sales commission report improvements, #25256
[freeside.git] / httemplate / search / report_sales_commission.html
1 <% include('/elements/header.html', 'Sales person commission report' ) %>
2
3 <FORM ACTION="sales_commission.html">
4
5 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
6
7 <& /elements/tr-select-agent.html,
8      'onchange'      => 'agent_changed(this)',
9 &>
10
11 <SCRIPT TYPE="text/javascript">
12
13   function agent_changed(what) {
14     salesnum_agentnum_changed(what);
15   }
16
17   <&| /elements/onload.js &>
18   agent_changed(document.getElementById('agentnum'))
19   </&>
20
21 </SCRIPT>
22
23 <& /elements/tr-select-sales.html,
24     'empty_label' => 'all',
25 &>
26
27 <& /elements/tr-checkbox.html,
28     'label' => 'Customer sales person if there is no package sales person',
29     'field' => 'cust_main_sales',
30     'value' => 'Y',
31 &>
32
33 <& /elements/tr-checkbox.html,
34     'label' => 'Show paid sales only',
35     'field' => 'paid',
36     'value' => 'Y',
37 &> 
38
39 <& /elements/tr-input-beginning_ending.html &>
40
41 </TABLE>
42
43 <BR>
44 <INPUT TYPE="submit" VALUE="Get Report">
45
46 <% include('/elements/footer.html') %>
47 <%init>
48
49 die "access denied"
50   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
51
52 </%init>