default to a session cookie instead of setting an explicit timeout, weird timezone...
[freeside.git] / httemplate / search / report_unapplied_cust_pay.html
1 <% include('/elements/header.html', 'Unapplied Payments Aging Summary' ) %>
2 %# 'Prepaid Balance Aging Summary', #???
3
4 <FORM NAME="OneTrueForm" ACTION="unapplied_cust_pay.html" METHOD="GET">
5
6 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
7
8   <TR>
9     <TH CLASS="background" COLSPAN=2 ALIGN="left">
10       <FONT SIZE="+1">Search options</FONT>
11     </TH>
12   </TR>
13
14   <% include( '/elements/tr-select-agent.html', 'disable_empty'=>0 ) %>
15
16   <% include( '/elements/tr-select-cust_main-status.html',
17                 'label' => 'Customer Status'
18             )
19   %>
20   
21   <TR>
22     <TD ALIGN="right">Customers</TD>
23     <TD>
24       <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 unapplied payments)<BR>
25       <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 unapplied payments over <INPUT NAME="days" TYPE="text" SIZE=4 MAXLENGTH=3 VALUE="0"> days old
26     </TD>
27   </TR>
28   <% include( '/elements/tr-input-date-field.html', {
29                 'name'      => 'as_of',
30                 'value'     => time,
31                 'label'     => 'As of date ',
32                 'format'    => FS::Conf->new->config('date_format') || '%m/%d/%Y',
33   } ) %>
34
35 </TABLE>
36
37 <BR><INPUT TYPE="submit" VALUE="Get Report">
38 </FORM>
39
40 <% include('/elements/footer.html') %>
41
42 <%init>
43
44 die "access denied"
45   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
46
47 </%init>