Added separate access right for receivables report
[freeside.git] / httemplate / search / report_receivables.html
1 <% include('/elements/header.html', 'Accounts Receivable Aging Summary' ) %>
2
3 <FORM NAME="OneTrueForm" ACTION="report_receivables.cgi" METHOD="GET">
4
5 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
6
7   <TR>
8     <TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left">
9       <FONT SIZE="+1">Search options</FONT>
10     </TH>
11   </TR>
12
13   <% include( '/elements/tr-select-agent.html', 'disable_empty'=>0 ) %>
14
15   <% include( '/elements/tr-select-cust_main-status.html',
16                 'label' => 'Customer Status'
17             )
18   %>
19   
20   <TR>
21     <TD ALIGN="right">Customers</TD>
22     <TD>
23       <INPUT TYPE="radio" NAME="all_customers" VALUE="1" onClick="if (this.checked) { document.OneTrueForm.days.disabled=true; document.OneTrueForm.days.style.backgroundColor = '#dddddd'; } else { document.OneTrueForm.days.disabled=false; document.OneTrueForm.days.style.backgroundColor = '#ffffff'; }">All customers (even those without an outstanding balance)<BR>
24       <INPUT TYPE="radio" NAME="all_customers" VALUE="0" CHECKED onClick="if ( ! this.checked ) { document.OneTrueForm.days.disabled=true; document.OneTrueForm.days.style.backgroundColor = '#dddddd'; } else { document.OneTrueForm.days.disabled=false; document.OneTrueForm.days.style.backgroundColor = '#ffffff'; }">Customers with a balance over <INPUT NAME="days" TYPE="text" SIZE=4 MAXLENGTH=3 VALUE="0"> days old
25     </TD>
26   </TR>
27
28 </TABLE>
29
30 <BR><INPUT TYPE="submit" VALUE="Get Report">
31 </FORM>
32
33 <% include('/elements/footer.html') %>
34
35 <%init>
36
37 die "access denied"
38   unless $FS::CurrentUser::CurrentUser->access_right('Receivables report');
39
40 </%init>