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 ($cgi->param('agentnum') || ''),
17 <% include( '/elements/tr-select-cust_main-status.html',
23 % foreach my $field (qw( signupdate )) {
26 <TD ALIGN="right" VALIGN="center"><% $label{$field} %></TD>
29 <% include( '/elements/tr-input-beginning_ending.html',
40 <% include( '/elements/tr-select-payby.html',
41 'payby_type' => 'cust',
43 'curr_value' => { map { $_ => 1 } FS::payby->cust_payby },
47 <% include( '/elements/tr-input-lessthan_greaterthan.html',
48 label => 'Current balance',
49 field => 'current_balance',
54 <TD ALIGN="right" VALIGN="center">Include cancelled packages</TD>
55 <TD><INPUT TYPE="checkbox" NAME="cancelled_pkgs"></TD>
59 <TH BGCOLOR="#e8e8e8" COLSPAN=2> </TH>
63 <TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Display options</FONT></TH>
65 <% include( '/elements/tr-select-cust-fields.html' ) %>
68 <TD ALIGN="right" VALIGN="center">Add package columns</TD>
69 <TD><INPUT TYPE="checkbox" NAME="flattened_pkgs"></TD>
74 <INPUT TYPE="submit" VALUE="Get Report">
78 <% include('/elements/footer.html') %>
82 unless ( $FS::CurrentUser::CurrentUser->access_right('List customers') &&
83 $FS::CurrentUser::CurrentUser->access_right('List packages')
90 'signupdate' => 'Signup date',