access control for List all customers, RT#75012
[freeside.git] / httemplate / search / report_sales_commission_pkg.html
1 <& /elements/header.html, 'Sales commission report per package' &>
2
3 % if ($FS::CurrentUser::CurrentUser->access_right('Send reports to customers'))
4 %   {
5 <P>
6 <& /elements/popup_link-send_report_batch.html,
7     reportname => 'sales_commission_pkg',
8     label => emt('Send these reports by email'),
9 &>
10 </P>
11 % } 
12
13 <FORM ACTION="sales_commission_pkg.html">
14
15 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
16
17 <& /elements/tr-select-agent-sales.html,
18      'agent_empty_label'   => '(any)',
19      'sales_disable_empty' => 1,
20 &>
21
22 <& /elements/tr-input-beginning_ending.html &>
23
24 </TABLE>
25
26 <BR>
27 <INPUT TYPE="submit" VALUE="Get Report">
28
29 <& /elements/footer.html &>
30 <%init>
31
32 die "access denied"
33   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
34
35 </%init>