1 <% include('/elements/header.html', 'Customer Report' ) %>
3 <FORM ACTION="cust_main.html" METHOD="GET">
4 <INPUT TYPE="hidden" NAME="magic" VALUE="bill">
6 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
9 <TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Search options</FONT></TH>
12 <% include( '/elements/tr-select-agent.html',
13 'curr_value' => scalar($cgi->param('agentnum')),
18 <% include( '/elements/tr-select-cust_main-status.html',
24 % foreach my $field (qw( signupdate )) {
27 <TD ALIGN="right" VALIGN="center"><% $label{$field} %></TD>
30 <% include( '/elements/tr-input-beginning_ending.html',
41 <% include( '/elements/tr-select-payby.html',
42 'payby_type' => 'cust',
44 'curr_value' => { map { $_ => 1 } FS::payby->cust_payby },
48 <% include( '/elements/tr-input-lessthan_greaterthan.html',
49 label => 'Current balance',
50 field => 'current_balance',
55 <TD ALIGN="right" VALIGN="center">Include cancelled packages</TD>
56 <TD><INPUT TYPE="checkbox" NAME="cancelled_pkgs"></TD>
60 <TH BGCOLOR="#e8e8e8" COLSPAN=2> </TH>
64 <TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Display options</FONT></TH>
66 <% include( '/elements/tr-select-cust-fields.html' ) %>
69 <TD ALIGN="right" VALIGN="center">Add package columns</TD>
70 <TD><INPUT TYPE="checkbox" NAME="flattened_pkgs"></TD>
75 <INPUT TYPE="submit" VALUE="Get Report">
79 <% include('/elements/footer.html') %>
83 unless ( $FS::CurrentUser::CurrentUser->access_right('List customers') &&
84 $FS::CurrentUser::CurrentUser->access_right('List packages')
91 'signupdate' => 'Signup date',