Optimize "Customer has a referring customer" condition, RT#74452
[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-sales.html &>
8
9 <& /elements/tr-checkbox.html,
10     'label' => 'Customer sales person if there is no package sales person',
11     'field' => 'cust_main_sales',
12     'value' => 'Y',
13 &>
14
15 <& /elements/tr-checkbox.html,
16     'label' => 'Show paid sales only',
17     'field' => 'paid',
18     'value' => 'Y',
19 &> 
20
21 <& /elements/tr-input-beginning_ending.html &>
22
23 </TABLE>
24
25 <BR>
26 <INPUT TYPE="submit" VALUE="Get Report">
27
28 <% include('/elements/footer.html') %>
29 <%init>
30
31 die "access denied"
32   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
33
34 </%init>