continue sales person work: customer and package selection, commissions, reporting...
[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
25 <& /elements/tr-checkbox.html,
26      'label' => 'Customer sales person if there is no package sales person',
27      'field' => 'cust_main_sales',
28      'value' => 'Y',
29 &>
30
31 <& /elements/tr-input-beginning_ending.html &>
32
33 </TABLE>
34
35 <BR>
36 <INPUT TYPE="submit" VALUE="Get Report">
37
38 <% include('/elements/footer.html') %>
39 <%init>
40
41 die "access denied"
42   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
43
44 </%init>