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>
11 <% include( '/elements/tr-select-agent.html',
12 ($cgi->param('agentnum') || ''),
16 % foreach my $field (qw( signupdate )) {
19 <TD ALIGN="right" VALIGN="center"><% $label{$field} %></TD>
22 <% include( '/elements/tr-input-beginning_ending.html',
33 <% include( '/elements/tr-select-payby.html',
34 'payby_type' => 'cust',
36 'curr_value' => { map { $_ => 1 } FS::payby->cust_payby },
40 <% include( '/elements/tr-input-lessthan_greaterthan.html',
41 label => 'Current balance',
42 field => 'current_balance',
47 <TD ALIGN="right" VALIGN="center">Include cancelled packages</TD>
48 <TD><INPUT TYPE="checkbox" NAME="cancelled_pkgs"></TD>
52 <TH BGCOLOR="#e8e8e8" COLSPAN=2> </TH>
56 <TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Display options</FONT></TH>
58 <% include( '/elements/tr-select-cust-fields.html' ) %>
61 <TD ALIGN="right" VALIGN="center">Add package columns</TD>
62 <TD><INPUT TYPE="checkbox" NAME="flattened_pkgs"></TD>
67 <INPUT TYPE="submit" VALUE="Get Report">
71 <% include('/elements/footer.html') %>
75 unless ( $FS::CurrentUser::CurrentUser->access_right('List customers') &&
76 $FS::CurrentUser::CurrentUser->access_right('List packages')
83 'signupdate' => 'Signup date',